Documentation ¶
Index ¶
- type Client
- func (c *Client) GetFile(idNum uint64, doi string) (io.ReadCloser, string, uint64, error)
- func (c *Client) GetFileByDOI(doi string) (io.ReadCloser, string, uint64, error)
- func (s *Client) InitFromSave() error
- func (s *Client) LookForRegisteredTorrent(id uint64) (*torrent.Torrent, error)
- func (c *Client) LookupTorrent(idNum uint64) (*torrent.Torrent, error)
- func (c *Client) RandomDOI() (string, error)
- func (c *Client) RecentDOI(n int) (string, error)
- func (s *Client) Register(rge util.Range, mi *torrent.TorrentSpec) error
- func (c *Client) Status() Status
- type ConnStatus
- type SaveState
- type SaveStateEntry
- type Status
- type TorrentStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetFileByDOI ¶
func (*Client) InitFromSave ¶
func (*Client) LookForRegisteredTorrent ¶
LookForRegisteredTorrent looks for an already-registered torrent for the given id.
func (*Client) LookupTorrent ¶
LookupTorrent looks for a torrent either registered or unregistered corresponding to the given id. If the found torrent is unregistered it is registered before being returned.
type ConnStatus ¶
type SaveState ¶
type SaveState []SaveStateEntry
type Status ¶
type Status struct { ConnStats ConnStatus TorrentStatus []TorrentStatus }
Click to show internal directories.
Click to hide internal directories.