Alpha WebDAV support (#37)
This commit is contained in:
parent
0f513ef8b3
commit
ed8bd64017
12 changed files with 447 additions and 93 deletions
config
|
@ -4,18 +4,25 @@ package config
|
|||
type Root struct {
|
||||
MaxCacheSize int64 `yaml:"max-cache-size,omitempty"`
|
||||
MetadataFolder string `yaml:"metadata-folder-name,omitempty"`
|
||||
AllowOther bool `yaml:"fuse-allow-other,omitempty"`
|
||||
|
||||
MountPoints []*MountPoint `yaml:"mountPoints"`
|
||||
WebDAV *WebDAV `yaml:"webDav"`
|
||||
}
|
||||
|
||||
type WebDAV struct {
|
||||
Torrents []*Torrent `yaml:"torrents"`
|
||||
}
|
||||
|
||||
type MountPoint struct {
|
||||
AllowOther bool `yaml:"fuse-allow-other,omitempty"`
|
||||
Path string `yaml:"path"`
|
||||
Torrents []struct {
|
||||
MagnetURI string `yaml:"magnetUri,omitempty"`
|
||||
TorrentPath string `yaml:"torrentPath,omitempty"`
|
||||
FolderName string `yaml:"folderName,omitempty"`
|
||||
} `yaml:"torrents"`
|
||||
Path string `yaml:"path"`
|
||||
Torrents []*Torrent `yaml:"torrents"`
|
||||
}
|
||||
|
||||
type Torrent struct {
|
||||
MagnetURI string `yaml:"magnetUri,omitempty"`
|
||||
TorrentPath string `yaml:"torrentPath,omitempty"`
|
||||
FolderName string `yaml:"folderName,omitempty"`
|
||||
}
|
||||
|
||||
func AddDefaults(r *Root) *Root {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue