gazelle

package
v0.0.0-...-c5679b9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(url, agent string) (*API, error)

func (*API) CreateDownloadURL

func (w *API) CreateDownloadURL(id int) (string, error)

func (*API) Do

func (w *API) Do(action string, params url.Values, result interface{}) error

func (*API) GetAccount

func (w *API) GetAccount() (model.Account, error)

func (*API) GetCollage

func (w *API) GetCollage(id int, params url.Values) (model.CollageWithGroups, error)

func (*API) GetJSON

func (w *API) GetJSON(requestURL string, responseObj interface{}) error

func (*API) GetTorrent

func (w *API) GetTorrent(id int, params url.Values) (model.TorrentAndGroup, error)

func (*API) GetTorrentGroup

func (w *API) GetTorrentGroup(id int, params url.Values) (model.GroupAndTorrents, error)

func (*API) Login

func (w *API) Login(username, password string) error

func (*API) Logout

func (w *API) Logout() error

type Response

type Response struct {
	Status string           `json:"status"`
	Error  string           `json:"error"`
	Result *json.RawMessage `json:"response"`
}

Jump to

Keyboard shortcuts

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