yts

package
v0.0.0-...-720374e Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListResponse

type ListResponse struct {
	Status        string `json:"status"`
	StatusMessage string `json:"status_message"`
	Data          struct {
		Movies []struct {
			TitleLong        string `json:"title_long"`
			MediumCoverImage string `json:"medium_cover_image"`
			Torrents         []struct {
				URL string `json:"url"`
			} `json:"torrents"`
		} `json:"movies"`
	} `json:"data"`
}

type YTS

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

func New

func New() *YTS

func (*YTS) Get

func (s *YTS) Get(endpoint string, v interface{}) error

func (*YTS) Search

func (s *YTS) Search(q string) (*ListResponse, error)

func (*YTS) SetHTTPClient

func (s *YTS) SetHTTPClient(httpClient *http.Client)

Jump to

Keyboard shortcuts

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