server

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerCommand = &cobra.Command{
	Use:   "server",
	Short: "Run a sync server",
	Long: `Run a sync server to sync music files between devices.
Server side will broadcast its IP address and port to the local network.
Client side will connect to the server and sync music files.`,
	Example: `munager sync server -p "/home/me/Music" --keep-broadcasting`,
}
View Source
var TerminateBroadcast bool
View Source
var UserBase []User

Functions

func Broadcast

func Broadcast(addr string)

func ListenAndServe

func ListenAndServe(addr string)

Types

type User

type User struct {
	Fingerprint string
	AccessList  []structure.FileInfo
	TimeCreated time.Time
}

func (*User) DeleteFile

func (u *User) DeleteFile(filebase string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL