Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2016 Changes in this version + func CheckMAC(message, messageMAC, key string) bool + func HMAC(message, key string) string + func ReadFromFile(filePath string) []byte + func SaveToFile(filePath string, data []byte) error + type Client struct + ServerAddr string + ServerKey string + func NewClient(server, key string) *Client + func (c *Client) Download(t *Torrent) bool + func (c *Client) ListSites() *SiteCollection + func (c *Client) Search(s string) *TorrentCollection + type Site struct + Enabled bool + ID string + Name string + URL string + type SiteCollection struct + func (sc *SiteCollection) Clear() + func (sc *SiteCollection) Get(idx int) *Site + func (sc *SiteCollection) Index(s *Site) int + func (sc *SiteCollection) Insert(i int, s *Site) + func (sc *SiteCollection) Length() int + func (sc *SiteCollection) MarshalJSON() ([]byte, error) + func (sc *SiteCollection) Pop(s *Site) + func (sc *SiteCollection) Push(s *Site) + func (sc *SiteCollection) Remove(i int) + func (sc *SiteCollection) Shift(s *Site) + func (sc *SiteCollection) UnmarshalJSON(data []byte) error + func (sc *SiteCollection) Unshift(s *Site) + type Torrent struct + ID string + Leechers int + MagnetURI string + Seeders int + SiteID string + Size int + Title string + type TorrentCollection struct + func (tc *TorrentCollection) Clear() + func (tc *TorrentCollection) Get(idx int) *Torrent + func (tc *TorrentCollection) Index(t *Torrent) int + func (tc *TorrentCollection) Insert(i int, t *Torrent) + func (tc *TorrentCollection) Length() int + func (tc *TorrentCollection) MarshalJSON() ([]byte, error) + func (tc *TorrentCollection) Pop(t *Torrent) + func (tc *TorrentCollection) Push(t *Torrent) + func (tc *TorrentCollection) Remove(i int) + func (tc *TorrentCollection) Shift(t *Torrent) + func (tc *TorrentCollection) UnmarshalJSON(data []byte) error + func (tc *TorrentCollection) Unshift(t *Torrent)