qbittorrent fs

This commit is contained in:
royalcat 2024-09-01 02:00:13 +03:00
parent ae4501ae21
commit f75188b412
51 changed files with 4048 additions and 231 deletions
src/config

View file

@ -2,16 +2,23 @@ package config
// Config is the main config object
type Settings struct {
WebUi WebUi `koanf:"webUi"`
TorrentClient TorrentClient `koanf:"torrent"`
Mounts Mounts `koanf:"mounts"`
Log Log `koanf:"log"`
WebUi WebUi `koanf:"webUi"`
Sources Sources `koanf:"sources"`
Mounts Mounts `koanf:"mounts"`
Log Log `koanf:"log"`
SourceDir string `koanf:"source_dir"`
OtelHttp string `koanf:"otel_http"`
}
type Sources struct {
TorrentClient TorrentClient `koanf:"torrent"`
QBittorrent QBittorrent `koanf:"qbittorrent"`
}
type WebUi struct {
Port int `koanf:"port"`
IP string `koanf:"ip"`
@ -25,6 +32,11 @@ type Log struct {
Path string `koanf:"path"`
}
type QBittorrent struct {
DataFolder string `koanf:"data_folder,omitempty"`
MetadataFolder string `koanf:"metadata_folder,omitempty"`
}
type TorrentClient struct {
// ReadTimeout int `koanf:"read_timeout,omitempty"`
// AddTimeout int `koanf:"add_timeout,omitempty"`