Documentation ¶
Overview ¶
Package rainrpc provides a RPC client implementation for communicating with Rain session.
Index ¶
- type AddTorrentOptions
- type Client
- func (c *Client) AddPeer(id string, addr string) error
- func (c *Client) AddTorrent(f io.Reader, options *AddTorrentOptions) (*rpctypes.Torrent, error)
- func (c *Client) AddTracker(id string, uri string) error
- func (c *Client) AddURI(uri string, options *AddTorrentOptions) (*rpctypes.Torrent, error)
- func (c *Client) Close() error
- func (c *Client) GetSessionStats() (*rpctypes.SessionStats, error)
- func (c *Client) GetTorrentPeers(id string) ([]rpctypes.Peer, error)
- func (c *Client) GetTorrentStats(id string) (*rpctypes.Stats, error)
- func (c *Client) GetTorrentTrackers(id string) ([]rpctypes.Tracker, error)
- func (c *Client) GetTorrentWebseeds(id string) ([]rpctypes.Webseed, error)
- func (c *Client) ListTorrents() ([]rpctypes.Torrent, error)
- func (c *Client) RemoveTorrent(id string) error
- func (c *Client) ServerVersion() (string, error)
- func (c *Client) StartAllTorrents() error
- func (c *Client) StartTorrent(id string) error
- func (c *Client) StopAllTorrents() error
- func (c *Client) StopTorrent(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTorrentOptions ¶ added in v0.8.7
type AddTorrentOptions struct {
Stopped bool
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddTorrent ¶
func (*Client) AddTracker ¶ added in v0.4.0
func (*Client) GetSessionStats ¶ added in v0.3.0
func (c *Client) GetSessionStats() (*rpctypes.SessionStats, error)
func (*Client) GetTorrentPeers ¶
func (*Client) GetTorrentStats ¶
func (*Client) GetTorrentTrackers ¶
func (*Client) GetTorrentWebseeds ¶ added in v0.7.0
func (*Client) RemoveTorrent ¶
func (*Client) ServerVersion ¶ added in v0.2.0
func (*Client) StartAllTorrents ¶ added in v0.4.0
func (*Client) StartTorrent ¶
func (*Client) StopAllTorrents ¶ added in v0.4.0
func (*Client) StopTorrent ¶
Click to show internal directories.
Click to hide internal directories.