Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuseGlobal ¶
type HTTPGlobal ¶
type ReloadFunc ¶
type Root ¶
type Root struct {
HTTPGlobal *HTTPGlobal `yaml:"http"`
WebDAV *WebDAVGlobal `yaml:"webdav"`
Torrent *TorrentGlobal `yaml:"torrent"`
Fuse *FuseGlobal `yaml:"fuse"`
Log *Log `yaml:"log"`
Routes []*Route `yaml:"routes"`
Servers []*Server `yaml:"servers"`
}
Root is the main yaml config object
func AddDefaults ¶
func DefaultConfig ¶
func DefaultConfig() *Root
type TorrentGlobal ¶
type TorrentGlobal struct {
ReadTimeout int `yaml:"read_timeout,omitempty"`
ContinueWhenAddTimeout bool `yaml:"continue_when_add_timeout,omitempty"`
AddTimeout int `yaml:"add_timeout,omitempty"`
GlobalCacheSize int64 `yaml:"global_cache_size,omitempty"`
MetadataFolder string `yaml:"metadata_folder,omitempty"`
DisableIPv6 bool `yaml:"disable_ipv6,omitempty"`
DisableTCP bool `yaml:"disable_tcp,omitempty"`
DisableUTP bool `yaml:"disable_utp,omitempty"`
IP string `yaml:"ip,omitempty"`
}
type WebDAVGlobal ¶
Click to show internal directories.
Click to hide internal directories.