Versions in this module Expand all Collapse all v0 v0.0.4 Oct 31, 2022 Changes in this version 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) + type MetadataFile struct + File string + Offset uint64 + Size uint64 type TitleTorrent + func (m *TitleTorrent) GetName() string + func (m *TitleTorrent) GetTorrentFileName() string + type TorrentMetadata struct + Announce []string + CreatedTimestamp uint64 + FilesList []*MetadataFile + Hash string + Name string v0.0.3 Oct 27, 2022 v0.0.2 Oct 26, 2022 Changes in this version + type ApiClient struct + func NewApiClient(ctx *cli.Context, log *zerolog.Logger) (*ApiClient, error) + func (*ApiClient) GetPopularTorrents() (error, 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 string + type SiteRequestMethod string + type Title struct + Code string + Id int + LastChange uint64 + Names *TitleNames + Status *TitleStatus + Torrents *TitleTorrents + Type *TitleType + Updated uint64 + type TitleNames struct + Alternative string + En string + Ru string + type TitleSchedule struct + Day int + List []*Title + type TitleStatus struct + Code int + String string + type TitleTorrent struct + Downloads int + Hash string + Leechers int + Metadata interface{} + Quality *TorrentQuality + RawBase64File interface{} + Seeders int + Series *TorrentSeries + TorrentId int + TotalSize int64 + UploadedTimestamp uint64 + Url string + func (m *TitleTorrent) GetShortHash() string + type TitleTorrents struct + List []*TitleTorrent + Series *TorrentSeries + type TitleType struct + Code int + FullString string + Length int + Series interface{} + String string + type TorrentQuality struct + Encoder string + LqAudio interface{} + Resolution string + String string + Type string + type TorrentSeries struct + Firest int + Last int + String string