Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultURL = "https://orpheus.network/ajax.php"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type Client ¶
type Client struct { RateLimiter *rate.Limiter APIKey string // contains filtered or unexported fields }
func (*Client) GetIndex ¶ added in v1.46.0
func (c *Client) GetIndex(ctx context.Context) (*GetIndexResponse, error)
GetIndex get API index
func (*Client) GetTorrentByID ¶
type ErrorResponse ¶
type GetIndexResponse ¶ added in v1.46.0
type Group ¶
type Group struct { //WikiBody string `json:"wikiBody"` //WikiImage string `json:"wikiImage"` Id int `json:"id"` Name string `json:"name"` Year int `json:"year"` RecordLabel string `json:"recordLabel"` CatalogueNumber string `json:"catalogueNumber"` ReleaseType int `json:"releaseType"` CategoryId int `json:"categoryId"` CategoryName string `json:"categoryName"` Time string `json:"time"` VanityHouse bool `json:"vanityHouse"` }
type Notifications ¶ added in v1.46.0
type Response ¶ added in v1.46.0
type Response struct { Username string `json:"username"` ID int64 `json:"id"` Notifications Notifications `json:"notifications"` Userstats Userstats `json:"userstats"` }
type Torrent ¶
type Torrent struct { Id int `json:"id"` InfoHash string `json:"infoHash"` Media string `json:"media"` Format string `json:"format"` Encoding string `json:"encoding"` Remastered bool `json:"remastered"` RemasterYear int `json:"remasterYear"` RemasterTitle string `json:"remasterTitle"` RemasterRecordLabel string `json:"remasterRecordLabel"` RemasterCatalogueNumber string `json:"remasterCatalogueNumber"` Scene bool `json:"scene"` HasLog bool `json:"hasLog"` HasCue bool `json:"hasCue"` LogScore int `json:"logScore"` FileCount int `json:"fileCount"` Size int `json:"size"` Seeders int `json:"seeders"` Leechers int `json:"leechers"` Snatched int `json:"snatched"` FreeTorrent string `json:"freeTorrent"` Time string `json:"time"` Description string `json:"description"` FileList string `json:"fileList"` FilePath string `json:"filePath"` UserId int `json:"userId"` Username string `json:"username"` }
type TorrentDetailsResponse ¶
Click to show internal directories.
Click to hide internal directories.