Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) GetConfiguredIndexers() []Indexer
- func (client *Client) GetServerConfiguration() *ServerConfiguration
- func (client *Client) LoadIndexersList() error
- func (client *Client) LoadServerConfiguration() error
- func (client *Client) Search(query string, trackers []string, categories []string) (*SearchResponse, error)
- type Indexer
- type IndexerCaps
- type Indexers
- type SearchIndexer
- type SearchResponse
- type SearchTorrent
- type ServerConfiguration
Constants ¶
View Source
const (
MaxRedirects = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetConfiguredIndexers ¶
Get list of configured Jackett indexers
func (*Client) GetServerConfiguration ¶
func (client *Client) GetServerConfiguration() *ServerConfiguration
Get Jackett server configuration
func (*Client) LoadIndexersList ¶
Load Jackett indexers list
func (*Client) LoadServerConfiguration ¶
Load Jackett server configuration
type Indexer ¶
type Indexer struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Configured bool `json:"configured"` SiteLink string `json:"site_link"` AlternativeSiteLinks []string `json:"alternativesitelinks"` Language string `json:"language"` LastError string `json:"last_error"` PotatoEnabled bool `json:"potatoenabled"` Categories []IndexerCaps `json:"caps"` }
type IndexerCaps ¶
type SearchIndexer ¶
type SearchResponse ¶
type SearchResponse struct { Results []SearchTorrent `json:"Results"` Indexers []SearchIndexer `json:"Indexers"` }
type SearchTorrent ¶
type SearchTorrent struct { FirstSeen string `json:"FirstSeen"` Tracker string `json:"Tracker"` TrackerID string `json:"TrackerId"` CategoryDesc string `json:"CategoryDesc"` BlackHoleLink interface{} `json:"BlackholeLink"` Title string `json:"Title"` GUID string `json:"Guid"` Link string `json:"Link"` Comments string `json:"Comments"` PublishDate string `json:"PublishDate"` Category []int64 `json:"Category"` Size int64 `json:"Size"` Files interface{} `json:"Files"` Grabs int64 `json:"Grabs"` Description interface{} `json:"Description"` RageID interface{} `json:"RageID"` TVDBID interface{} `json:"TVDBId"` Imdb interface{} `json:"Imdb"` TMDb interface{} `json:"TMDb"` Seeders int64 `json:"Seeders"` Peers int64 `json:"Peers"` BannerURL interface{} `json:"BannerUrl"` InfoHash interface{} `json:"InfoHash"` MagnetURI interface{} `json:"MagnetUri"` MinimumRatio float64 `json:"MinimumRatio"` MinimumSeedTime int64 `json:"MinimumSeedTime"` DownloadVolumeFactor float64 `json:"DownloadVolumeFactor"` UploadVolumeFactor float64 `json:"UploadVolumeFactor"` Gain float64 `json:"Gain"` }
type ServerConfiguration ¶
type ServerConfiguration struct { Notices []interface{} `json:"notices"` Port int64 `json:"port"` External bool `json:"external"` APIKey string `json:"api_key"` BlackHoleDirectory string `json:"blackholedir"` UpdateDisabled bool `json:"updatedisabled"` Prerelease bool `json:"prerelease"` Password string `json:"password"` Logging bool `json:"logging"` BasePathOverride string `json:"basepathoverride"` OMDBKey string `json:"omdbkey"` OMDBUrl string `json:"omdburl"` AppVersion string `json:"app_version"` CanRunNetCore bool `json:"can_run_netcore"` ProxyType int64 `json:"proxy_type"` ProxyURL string `json:"proxy_url"` ProxyPort int64 `json:"proxy_port"` ProxyUsername string `json:"proxy_username"` ProxyPassword string `json:"proxy_password"` }
Click to show internal directories.
Click to hide internal directories.