common

package
v0.0.0-...-d7d6a54 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 Show

type Show struct {
	ID          int
	Type        string
	Name        string
	Year        int
	VoteAverage float32
}

Show is a common representation for movies and tv series.

func GetShow

func GetShow(c client.Client, id int, t string) (*Show, error)

GetShow retrieves info on the movie or tv show (specified by the passed type) with the given id and returns it in the form of a Show.

func SearchShow

func SearchShow(c client.Client, name string) ([]*Show, error)

SearchShow searches for movies and tv shows using the given client and returns the results in the form a list of shows.

Directories

Path Synopsis
Package client implements a REST API client for retrieving information on shows.
Package client implements a REST API client for retrieving information on shows.
Package store implements a data store for items.
Package store implements a data store for items.

Jump to

Keyboard shortcuts

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