models

package
v0.0.0-...-165ec4b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Gender string `json:"gender"`
	Links  []struct {
		Rel  string `json:"rel"`
		Href string `json:"href"`
	} `json:"links"`
}

func GetActors

func GetActors() ([]Actor, error)

func (*Actor) Get

func (actor *Actor) Get(id int) error

func (*Actor) GetDoctor

func (actor *Actor) GetDoctor() (*Doctor, error)

type Doctor

type Doctor struct {
	ID             int    `json:"id"`
	Incarnation    string `json:"incarnation"`
	PrimaryActorID int    `json:"primaryActorID"`
	Links          []struct {
		Rel  string `json:"rel"`
		Href string `json:"href"`
	} `json:"links"`
}

func GetDoctors

func GetDoctors() ([]Doctor, error)

func (*Doctor) Get

func (doctor *Doctor) Get(id int) error

func (*Doctor) GetActor

func (doctor *Doctor) GetActor() (*Actor, error)

type Episode

type Episode struct {
	ID    int `json:"id"`
	Links []struct {
		Rel  string `json:"rel"`
		Href string `json:"href"`
	} `json:"links"`
	Title             string  `json:"title,omitempty"`
	SerialID          *int    `json:"serialID,omitempty"`
	EpisodeOrder      string  `json:"episodeOrder,omitempty"`
	OriginalAirDate   string  `json:"originalAirDate,omitempty"`
	Runtime           string  `json:"runtime,omitempty"`
	UkViewersMM       float64 `json:"ukViewersMM,omitempty"`
	AppreciationIndex int     `json:"appreciationIndex,omitempty"`
	Missing           bool    `json:"missing,omitempty"`
	Recreated         bool    `json:"recreated,omitempty"`
}

Jump to

Keyboard shortcuts

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