rainrpc

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package rainrpc provides a RPC client implementation for communicating with Rain session.

Index

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
	ID      string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(addr string) *Client

func (*Client) AddPeer added in v0.4.0

func (c *Client) AddPeer(id string, addr string) error

func (*Client) AddTorrent

func (c *Client) AddTorrent(f io.Reader, options *AddTorrentOptions) (*rpctypes.Torrent, error)

func (*Client) AddTracker added in v0.4.0

func (c *Client) AddTracker(id string, uri string) error

func (*Client) AddURI

func (c *Client) AddURI(uri string, options *AddTorrentOptions) (*rpctypes.Torrent, error)

func (*Client) AnnounceTorrent added in v0.10.0

func (c *Client) AnnounceTorrent(id string) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetSessionStats added in v0.3.0

func (c *Client) GetSessionStats() (*rpctypes.SessionStats, error)

func (*Client) GetTorrentPeers

func (c *Client) GetTorrentPeers(id string) ([]rpctypes.Peer, error)

func (*Client) GetTorrentStats

func (c *Client) GetTorrentStats(id string) (*rpctypes.Stats, error)

func (*Client) GetTorrentTrackers

func (c *Client) GetTorrentTrackers(id string) ([]rpctypes.Tracker, error)

func (*Client) GetTorrentWebseeds added in v0.7.0

func (c *Client) GetTorrentWebseeds(id string) ([]rpctypes.Webseed, error)

func (*Client) ListTorrents

func (c *Client) ListTorrents() ([]rpctypes.Torrent, error)

func (*Client) RemoveTorrent

func (c *Client) RemoveTorrent(id string) error

func (*Client) ServerVersion added in v0.2.0

func (c *Client) ServerVersion() (string, error)

func (*Client) StartAllTorrents added in v0.4.0

func (c *Client) StartAllTorrents() error

func (*Client) StartTorrent

func (c *Client) StartTorrent(id string) error

func (*Client) StopAllTorrents added in v0.4.0

func (c *Client) StopAllTorrents() error

func (*Client) StopTorrent

func (c *Client) StopTorrent(id string) error

func (*Client) VerifyTorrent added in v0.10.0

func (c *Client) VerifyTorrent(id string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL