Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPattern ¶
Types ¶
type CheckResponse ¶
type CheckResponse struct {
Valid bool `json:"valid"`
}
type JSONErrorResponse ¶
type LoginPayload ¶
type Pattern ¶
type Pattern struct { ID string `json:"id"` Source Source `json:"source"` QueryKeywords []string `json:"queryKeywords"` SearchKeywords []string `json:"searchKeywords"` DownloadPath string `json:"downloadPath"` Period Period `json:"period"` DayIndicator string `json:"dayIndicator"` FireHour int `json:"fireHour"` FireMinute int `json:"fireMinute"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }
func GetPattern ¶
func GetPatterns ¶
type PatternDB ¶
type PatternDB struct { ID string `db:"id"` Source string `db:"source"` Query string `db:"query"` Search string `db:"search"` DownloadPath string `db:"dlpath"` Period string `db:"period"` Dayind string `db:"dayind"` FireHour int `db:"firehour"` FireMinute int `db:"fireminute"` Created time.Time `db:"created"` Updated time.Time `db:"updated"` }
type PatternPayload ¶
type PatternPayload struct { Source string `json:"source"` QueryKeywords []string `json:"queryKeywords"` SearchKeywords []string `json:"searchKeywords"` DownloadPath string `json:"downloadPath"` Period string `json:"period"` DayIndicator string `json:"dayIndicator"` FireHour int `json:"fireHour"` FireMinute int `json:"fireMinute"` }
func (*PatternPayload) ToPattern ¶
func (p *PatternPayload) ToPattern() (Pattern, error)
func (*PatternPayload) Validate ¶
func (p *PatternPayload) Validate() bool
type Site ¶
func GetDefaultSite ¶
type Torrent ¶
type Torrent struct { MagnetLink string `json:"magnet_link"` Keywords []string `json:"keywords"` Seeders int `json:"seeders"` Leechers int `json:"leechers"` Size int `json:"size"` // size in Mega Bytes Quality int `json:"quality"` Uploaded time.Time `json:"uploaded"` }
func (*Torrent) CalculateQuality ¶
Click to show internal directories.
Click to hide internal directories.