Bandwidth tracking

This commit is contained in:
Ben Adrian Sarmiento
2024-06-25 00:12:53 +02:00
parent e9e31759c1
commit 7fc8a4e0c5
4 changed files with 16 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ type ConfigInterface interface {
ShouldCacheNetworkTestResults() bool
ShouldForceIPv6() bool
ShouldIgnoreRenames() bool
ShouldLogRequests() bool
ShouldServeFromRclone() bool
}
@@ -54,6 +55,7 @@ type ZurgConfig struct {
ForceIPv6 bool `yaml:"force_ipv6" json:"force_ipv6"`
Host string `yaml:"host" json:"host"`
IgnoreRenames bool `yaml:"ignore_renames" json:"ignore_renames"`
LogRequests bool `yaml:"log_requests" json:"log_requests"`
NetworkBufferSize int `yaml:"network_buffer_size" json:"network_buffer_size"`
NumberOfHosts int `yaml:"number_of_hosts" json:"number_of_hosts"`
NumOfWorkers int `yaml:"concurrent_workers" json:"concurrent_workers"`
@@ -229,3 +231,7 @@ func (z *ZurgConfig) ShouldAutoAnalyzeNewTorrents() bool {
func (z *ZurgConfig) ShouldCacheNetworkTestResults() bool {
return z.CacheNetworkTestResults
}
func (z *ZurgConfig) ShouldLogRequests() bool {
return z.LogRequests
}