Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Global globalConfig `toml:"global"` Manager managerConfig `toml:"manager"` Server serverConfig `toml:"server"` Cgroup cgroupConfig `toml:"cgroup"` ZFS zfsConfig `toml:"zfs"` BtrfsSnapshot btrfsSnapshotConfig `toml:"btrfs_snapshot"` Docker dockerConfig `toml:"docker"` Include includeConfig `toml:"include"` MirrorsConf []mirrorConfig `toml:"mirrors"` Mirrors []mirrorConfig }
Config represents worker config options
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
A Context object is a layered key-value storage when enters a context, the changes to the storage would be stored in a new layer and when exits, the top layer poped and the storage returned to the state before entering this context
type MemBytes ¶ added in v0.8.0
type MemBytes int64
func (*MemBytes) UnmarshalText ¶ added in v0.8.0
UnmarshalJSON is the customized unmarshaler for MemBytes
type Worker ¶
A Worker is a instance of tunasync worker
func NewTUNASyncWorker ¶ added in v0.3.4
NewTUNASyncWorker creates a worker
func (*Worker) ReloadMirrorConfig ¶
func (w *Worker) ReloadMirrorConfig(newMirrors []mirrorConfig)
ReloadMirrorConfig refresh the providers and jobs from new mirror configs TODO: deleted job should be removed from manager-side mirror list
Source Files ¶
Click to show internal directories.
Click to hide internal directories.