Documentation ¶
Index ¶
- type ApiClient
- func (m *ApiClient) DropActiveSession(sid string) (bool, error)
- func (m *ApiClient) DropActiveSessions(sids ...string)
- func (m *ApiClient) GetActiveSessions() (_ *map[string][]string, e error)
- func (m *ApiClient) GetApiAuthorization() (e error)
- func (m *ApiClient) GetLastChanges() (titles []*Title, e error)
- func (m *ApiClient) GetLastUpdates() (titles []*Title, e error)
- func (m *ApiClient) GetTitleTorrentFile(tid string) (string, *[]byte, error)
- func (m *ApiClient) GetTitlesFromSchedule() (titles []*Title, e error)
- func (m *ApiClient) GetTitlesSchedule() (schedule []*TitleSchedule, e error)
- func (m *ApiClient) SearchTitlesByName(name string) (titles []*Title, e error)
- type ApiRequestMethod
- type MetadataFile
- type SiteRequestMethod
- type Title
- type TitleNames
- type TitleSchedule
- type TitleStatus
- type TitleTorrent
- type TitleTorrents
- type TitleType
- type TorrentMetadata
- type TorrentQuality
- type TorrentSeries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func (*ApiClient) DropActiveSession ¶ added in v0.0.4
func (*ApiClient) DropActiveSessions ¶ added in v0.0.4
func (*ApiClient) GetActiveSessions ¶ added in v0.0.4
func (*ApiClient) GetApiAuthorization ¶
func (*ApiClient) GetLastChanges ¶
func (*ApiClient) GetLastUpdates ¶
func (*ApiClient) GetTitleTorrentFile ¶
func (*ApiClient) GetTitlesFromSchedule ¶
func (*ApiClient) GetTitlesSchedule ¶
func (m *ApiClient) GetTitlesSchedule() (schedule []*TitleSchedule, e error)
type ApiRequestMethod ¶
type ApiRequestMethod string
type MetadataFile ¶ added in v0.0.4
type SiteRequestMethod ¶
type SiteRequestMethod string
type Title ¶
type Title struct { Id int Code string Updated uint64 // sometimes the anilibria project mark their update time as a NULL LastChange uint64 `json:"last_change"` // I dont know how to mark this fields as "if time.Parse fails - ignore" Names *TitleNames Status *TitleStatus Type *TitleType Torrents *TitleTorrents }
type TitleNames ¶
type TitleSchedule ¶
type TitleStatus ¶
type TitleTorrent ¶
type TitleTorrent struct { TorrentId int `json:"torrent_id"` Series *TorrentSeries Quality *TorrentQuality Leechers int Seeders int Downloads int TotalSize int64 `json:"total_size"` Url string UploadedTimestamp uint64 `json:"uploaded_timestamp"` Hash string Metadata *TorrentMetadata RawBase64File interface{} }
func (*TitleTorrent) GetName ¶ added in v0.0.4
func (m *TitleTorrent) GetName() string
func (*TitleTorrent) GetShortHash ¶
func (m *TitleTorrent) GetShortHash() string
func (*TitleTorrent) GetTorrentFileName ¶ added in v0.0.4
func (m *TitleTorrent) GetTorrentFileName() string
type TitleTorrents ¶
type TitleTorrents struct { Series *TorrentSeries List []*TitleTorrent }
type TorrentMetadata ¶ added in v0.0.4
type TorrentMetadata struct { Hash string Name string Announce []string CreatedTimestamp uint64 `json:"created_timestamp"` FilesList []*MetadataFile `json:"files_list"` }
type TorrentQuality ¶
type TorrentSeries ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.