Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Delimiter = "." Config *Configuration K = koanf.New(Delimiter) )
Functions ¶
func ValidateStruct ¶
func ValidateStruct(s interface{}) []error
Types ¶
type Configuration ¶
type DefaultValidator ¶
type DefaultValidator struct { }
type FilterConfiguration ¶
type RequiredValidator ¶
type RequiredValidator struct { }
type Torrent ¶
type Torrent struct { // torrent Hash string `json:"Hash"` Name string `json:"Name"` Path string `json:"Path"` TotalBytes int64 `json:"TotalBytes"` DownloadedBytes int64 `json:"DownloadedBytes"` State string `json:"State"` Files []string `json:"Files"` Tags []string `json:"Tags"` Downloaded bool `json:"Downloaded"` Seeding bool `json:"Seeding"` Ratio float32 `json:"Ratio"` AddedSeconds int64 `json:"AddedSeconds"` AddedHours float32 `json:"AddedHours"` AddedDays float32 `json:"AddedDays"` SeedingSeconds int64 `json:"SeedingSeconds"` SeedingHours float32 `json:"SeedingHours"` SeedingDays float32 `json:"SeedingDays"` Label string `json:"Label"` Seeds int64 `json:"Seeds"` Peers int64 `json:"Peers"` // set by client on GetCurrentFreeSpace FreeSpaceGB func() float64 `json:"-"` FreeSpaceSet bool `json:"-"` // tracker TrackerName string `json:"TrackerName"` TrackerStatus string `json:"TrackerStatus"` // set by command HardlinkedOutsideClient bool `json:"-"` }
func (*Torrent) HasAllTags ¶
func (*Torrent) IsUnregistered ¶
Click to show internal directories.
Click to hide internal directories.