Version: v0.0.0-...-415ebe7 Latest Latest

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0




View Source
const (
	// FetchTVBYNameEndpoint is a search endpoint constant.
	FetchTVBYNameEndpoint = "FetchBYNameEndpoint"
	// FetchTVBYIDEndpoint is a search endpoint constant.
	FetchTVBYIDEndpoint = "FetchBYIDEndpoint"
	// FetchEpisodeEndpoint is a search endpoint constant.
	FetchEpisodeEndpoint = "FetchEpisodeEndpoint"


This section is empty.


This section is empty.


type Endpoints

type Endpoints map[string]endpoint.Endpoint

Endpoints is container for endpoints.

func NewSearchEndpoints

func NewSearchEndpoints(config sdk.HTTPClientConfig) (Endpoints, error)

NewSearchEndpoints is endpoint client for single direct calls.

type TMDBClient

type TMDBClient struct {
	// contains filtered or unexported fields

func NewTMDBClient

func NewTMDBClient(config sdk.HTTPClientConfig) (TMDBClient, error)

NewTMDBClient returns new service implementation.

func (TMDBClient) FetchBYIDEndpoint

func (s TMDBClient) FetchBYIDEndpoint(ctx context.Context, id string) (*entities.FetchBYIDResponse, error)

FetchBYIDEndpoint search for season.

func (TMDBClient) FetchBYName

func (s TMDBClient) FetchBYName(ctx context.Context, query string, includeAdult bool) (*entities.FetchBYNameResponse, error)

FetchBYName search for a TV show by Name.

func (TMDBClient) FetchEpisodeEndpoint

func (s TMDBClient) FetchEpisodeEndpoint(ctx context.Context, sID, eID, tvID string) (*entities.FetchEpisodeBYIDResponse, error)

FetchEpisodeEndpoint search for a specific episode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL