Documentation ¶
Index ¶
- func AppDir() string
- func ChunkSize() int32
- func DisconnectTimeout() time.Duration
- func DownloadTimeout() time.Duration
- func DownloadsDir() string
- func Load(fpath string) error
- func LogLevel() string
- func MinIndexFiles() int32
- func NodeConnectTimeout() time.Duration
- func NodePort() string
- func PingTimeout() time.Duration
- func SearchTimeout() time.Duration
- func ShareDirs() []string
- func TrackerConnectTimeout() time.Duration
- func TrackerHost() string
- func TrackerPort() string
- func UpdateDownloadsDir(value string)
- func UpdateShareDirs(value []string)
- func UpdateTracker(host string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppDir ¶
func AppDir() string
AppDir returns the application directory on this node where process generated files are placed.
func DisconnectTimeout ¶
DisconnectTimeout returns the disconnect timeout.
func DownloadTimeout ¶
DownloadTimeout returns the download timeout.
func DownloadsDir ¶
func DownloadsDir() string
DownloadsDir returns the downloads directory on this node where the downloaded files are placed.
func MinIndexFiles ¶
func MinIndexFiles() int32
MinIndexFiles returns the minimum cumulative number of files that each node should index to enter the network.
func NodeConnectTimeout ¶
NodeConnectTimeout returns the node connect timeout.
func NodePort ¶
func NodePort() string
NodePort returns the port exposed by each Node for communication with the other nodes and the tracker.
func ShareDirs ¶
func ShareDirs() []string
ShareDirs returns the share directories on this node that need to be indexed when the node starts up.
func TrackerConnectTimeout ¶
TrackerConnectTimeout returns the tracker connect timeout.
func UpdateDownloadsDir ¶
func UpdateDownloadsDir(value string)
UpdateDownloadsDir sets the downlods directory in the config file to the given value.
func UpdateShareDirs ¶
func UpdateShareDirs(value []string)
UpdateShareDirs sets the share directories in the config file to the given values.
func UpdateTracker ¶
func UpdateTracker(host string)
UpdateTracker updates the IP address of the tracker in the config file.
Types ¶
This section is empty.