Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Worker WorkerConfig `mapstructure:"worker"`
QBittorrent QBittorrentConfig `mapstructure:"qbittorrent"`
Transfer TransferConfig `mapstructure:"transfer"`
Pesto PestoConfig `mapstructure:"pesto"`
GoNZB GoNZBConfig `mapstructure:"gonzb"`
}
func (*Config) GoNZBTimeout ¶
func (*Config) PollInterval ¶
func (*Config) QBittorrentTimeout ¶
type GoNZBConfig ¶
type PestoConfig ¶
type PestoConfig struct {
Binary string `mapstructure:"binary"`
ConfigPath string `mapstructure:"config_path"`
Compression string `mapstructure:"compression"`
Encryption bool `mapstructure:"encryption"`
Obfuscation string `mapstructure:"obfuscation"`
PAR2Percent int `mapstructure:"par2_percent"`
ExtraArgs []string `mapstructure:"extra_args"`
}
type QBittorrentConfig ¶
type QBittorrentConfig struct {
URL string `mapstructure:"url"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
HTTPBasicUsername string `mapstructure:"http_basic_username"`
HTTPBasicPassword string `mapstructure:"http_basic_password"`
CandidateTag string `mapstructure:"candidate_tag"`
TimeoutSecs int `mapstructure:"timeout_seconds"`
}
type TransferConfig ¶
type TransferConfig struct {
Type string `mapstructure:"type"`
RsyncBinary string `mapstructure:"rsync_binary"`
SSHFSBinary string `mapstructure:"sshfs_binary"`
UnmountBinary string `mapstructure:"unmount_binary"`
SSHHost string `mapstructure:"ssh_host"`
SSHUser string `mapstructure:"ssh_user"`
SSHPort int `mapstructure:"ssh_port"`
SSHKey string `mapstructure:"ssh_key"`
SourceRoot string `mapstructure:"source_root"`
MountPath string `mapstructure:"mount_path"`
ManageMount bool `mapstructure:"manage_mount"`
UnmountOnExit bool `mapstructure:"unmount_on_exit"`
ExtraArgs []string `mapstructure:"extra_args"`
SSHFSOptions []string `mapstructure:"sshfs_options"`
}
type WorkerConfig ¶
type WorkerConfig struct {
DataDir string `mapstructure:"data_dir"`
NodeID string `mapstructure:"node_id"`
PollIntervalSeconds int `mapstructure:"poll_interval_seconds"`
MinFreeSpaceGB float64 `mapstructure:"min_free_space_gb"`
WorkspaceMultiplier float64 `mapstructure:"workspace_multiplier"`
CleanupOnSuccess bool `mapstructure:"cleanup_on_success"`
}
Click to show internal directories.
Click to hide internal directories.