models

package
v0.0.0-...-63997f1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bio

type Bio struct {
	ID         string `json:"id"`
	Bio        string `json:"bio"`
	BirthPlace string `json:"birth_place"`

	Link string `json:"_link"`
}

type Cast

type Cast struct {
	MovieID string    `json:"movie_id"`
	Cast    []*Credit `json:"cast"`

	Link string `json:"_link"`
}

type Credit

type Credit struct {
	Role     string `json:"role"`
	Details  string `json:"details"`
	StarID   string `json:"star_id"`
	StarName string `json:"star_name"`
	HeroName string `json:"hero_name"`
	StarLink string `json:"_star_link"`
}

type Genre

type Genre struct {
	Name string
}

type Movie

type Movie struct {
	ID           string    `json:"id"`
	Title        string    `json:"title"`
	PosterURL    string    `json:"poster_url"`
	Description  string    `json:"description"`
	IMDbRating   float64   `json:"imdbRating"`
	Metascore    int       `json:"metascore"`
	MetascoreURL string    `json:"metascore_url"`
	Genres       []string  `json:"genres"`
	ReleaseDate  time.Time `json:"release_date"`

	Link string `json:"_link"`
}

type Star

type Star struct {
	ID         string     `json:"id"`
	Name       string     `json:"name"`
	FirstName  string     `json:"first_name"`
	MiddleName *string    `json:"middle_name"`
	LastName   string     `json:"last_name"`
	AvatarURL  string     `json:"avatar_url"`
	IMDbURL    string     `json:"imdb_url"`
	BirthDate  time.Time  `json:"birth_date"`
	DeathDate  *time.Time `json:"death_date"`

	Link string `json:"_link"`
}

Jump to

Keyboard shortcuts

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