models

package
v0.0.0-...-3d23d00 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Episode

type Episode struct {
	ID            int
	Series        int
	EpisodeNumber int
}

Episode describe one episode

type MovieCreationPayload

type MovieCreationPayload struct {
	MovieName        string
	URL              string
	SeriesNumber     int
	EpisodesInSeries int
}

MovieCreationPayload describe information necessary to create movie object in database

type MovieDetail

type MovieDetail struct {
	ID                       int64
	Name                     string
	URL                      string
	SeriesCount              int
	LastWatchedEpisode       Episode
	DateOfLastWatchedEpisode time.Time
}

MovieDetail descrbie details about selected movie series

type MovieItem

type MovieItem struct {
	ID   int
	Name string
	URL  string
}

MovieItem is stuct which contains simple information about movie

type MovieItems

type MovieItems []MovieItem

MovieItems is array type which contains list of MovieItems

type MovieUpdatePayload

type MovieUpdatePayload struct {
	MovieName        string
	URL              string
	SeriesNumber     int
	EpisodesInSeries int
}

MovieUpdatePayload describe information necessary to update movie object in database

Jump to

Keyboard shortcuts

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