ogent

package
v0.0.0-...-9131046 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtistActedList

type ArtistActedList struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/Artist_ActedList

func NewArtistActedList

func NewArtistActedList(e *ent.Movie) *ArtistActedList

func NewArtistActedLists

func NewArtistActedLists(es []*ent.Movie) []ArtistActedList

func (*ArtistActedList) Decode

func (s *ArtistActedList) Decode(d *jx.Decoder) error

Decode decodes ArtistActedList from json.

func (*ArtistActedList) Elem

func (m *ArtistActedList) Elem() ArtistActedList

func (ArtistActedList) Encode

func (s ArtistActedList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistCountriesList

type ArtistCountriesList struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
	Code string "json:\"code\""
}

Ref: #/components/schemas/Artist_CountriesList

func NewArtistCountriesList

func NewArtistCountriesList(e *ent.Country) *ArtistCountriesList

func NewArtistCountriesLists

func NewArtistCountriesLists(es []*ent.Country) []ArtistCountriesList

func (*ArtistCountriesList) Decode

func (s *ArtistCountriesList) Decode(d *jx.Decoder) error

Decode decodes ArtistCountriesList from json.

func (*ArtistCountriesList) Elem

func (ArtistCountriesList) Encode

func (s ArtistCountriesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistCreate

type ArtistCreate struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/ArtistCreate

func NewArtistCreate

func NewArtistCreate(e *ent.Artist) *ArtistCreate

func NewArtistCreates

func NewArtistCreates(es []*ent.Artist) []ArtistCreate

func (*ArtistCreate) Decode

func (s *ArtistCreate) Decode(d *jx.Decoder) error

Decode decodes ArtistCreate from json.

func (*ArtistCreate) Elem

func (a *ArtistCreate) Elem() ArtistCreate

func (ArtistCreate) Encode

func (s ArtistCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistDirectedList

type ArtistDirectedList struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/Artist_DirectedList

func NewArtistDirectedList

func NewArtistDirectedList(e *ent.Movie) *ArtistDirectedList

func NewArtistDirectedLists

func NewArtistDirectedLists(es []*ent.Movie) []ArtistDirectedList

func (*ArtistDirectedList) Decode

func (s *ArtistDirectedList) Decode(d *jx.Decoder) error

Decode decodes ArtistDirectedList from json.

func (*ArtistDirectedList) Elem

func (ArtistDirectedList) Encode

func (s ArtistDirectedList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistList

type ArtistList struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/ArtistList

func NewArtistList

func NewArtistList(e *ent.Artist) *ArtistList

func NewArtistLists

func NewArtistLists(es []*ent.Artist) []ArtistList

func (*ArtistList) Decode

func (s *ArtistList) Decode(d *jx.Decoder) error

Decode decodes ArtistList from json.

func (*ArtistList) Elem

func (a *ArtistList) Elem() ArtistList

func (ArtistList) Encode

func (s ArtistList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistPicturesList

type ArtistPicturesList struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/Artist_PicturesList

func NewArtistPicturesList

func NewArtistPicturesList(e *ent.Picture) *ArtistPicturesList

func NewArtistPicturesLists

func NewArtistPicturesLists(es []*ent.Picture) []ArtistPicturesList

func (*ArtistPicturesList) Decode

func (s *ArtistPicturesList) Decode(d *jx.Decoder) error

Decode decodes ArtistPicturesList from json.

func (*ArtistPicturesList) Elem

func (ArtistPicturesList) Encode

func (s ArtistPicturesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistProfilePictureRead

type ArtistProfilePictureRead struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/Artist_ProfilePictureRead

func NewArtistProfilePictureRead

func NewArtistProfilePictureRead(e *ent.Picture) *ArtistProfilePictureRead

func NewArtistProfilePictureReads

func NewArtistProfilePictureReads(es []*ent.Picture) []ArtistProfilePictureRead

func (*ArtistProfilePictureRead) Decode

func (s *ArtistProfilePictureRead) Decode(d *jx.Decoder) error

Decode decodes ArtistProfilePictureRead from json.

func (*ArtistProfilePictureRead) Elem

func (ArtistProfilePictureRead) Encode

func (s ArtistProfilePictureRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistRead

type ArtistRead struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/ArtistRead

func NewArtistRead

func NewArtistRead(e *ent.Artist) *ArtistRead

func NewArtistReads

func NewArtistReads(es []*ent.Artist) []ArtistRead

func (*ArtistRead) Decode

func (s *ArtistRead) Decode(d *jx.Decoder) error

Decode decodes ArtistRead from json.

func (*ArtistRead) Elem

func (a *ArtistRead) Elem() ArtistRead

func (ArtistRead) Encode

func (s ArtistRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistUpdate

type ArtistUpdate struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/ArtistUpdate

func NewArtistUpdate

func NewArtistUpdate(e *ent.Artist) *ArtistUpdate

func NewArtistUpdates

func NewArtistUpdates(es []*ent.Artist) []ArtistUpdate

func (*ArtistUpdate) Decode

func (s *ArtistUpdate) Decode(d *jx.Decoder) error

Decode decodes ArtistUpdate from json.

func (*ArtistUpdate) Elem

func (a *ArtistUpdate) Elem() ArtistUpdate

func (ArtistUpdate) Encode

func (s ArtistUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ArtistWroteList

type ArtistWroteList struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/Artist_WroteList

func NewArtistWroteList

func NewArtistWroteList(e *ent.Movie) *ArtistWroteList

func NewArtistWroteLists

func NewArtistWroteLists(es []*ent.Movie) []ArtistWroteList

func (*ArtistWroteList) Decode

func (s *ArtistWroteList) Decode(d *jx.Decoder) error

Decode decodes ArtistWroteList from json.

func (*ArtistWroteList) Elem

func (m *ArtistWroteList) Elem() ArtistWroteList

func (ArtistWroteList) Encode

func (s ArtistWroteList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...Option) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) CreateArtist

func (c *Client) CreateArtist(ctx context.Context, request CreateArtistReq) (res CreateArtistRes, err error)

CreateArtist invokes createArtist operation.

Creates a new Artist and persists it to storage.

POST /artists

func (*Client) CreateCountry

func (c *Client) CreateCountry(ctx context.Context, request CreateCountryReq) (res CreateCountryRes, err error)

CreateCountry invokes createCountry operation.

Creates a new Country and persists it to storage.

POST /countries

func (*Client) CreateFile

func (c *Client) CreateFile(ctx context.Context, request CreateFileReq) (res CreateFileRes, err error)

CreateFile invokes createFile operation.

Creates a new File and persists it to storage.

POST /files

func (*Client) CreateMovie

func (c *Client) CreateMovie(ctx context.Context, request CreateMovieReq) (res CreateMovieRes, err error)

CreateMovie invokes createMovie operation.

Creates a new Movie and persists it to storage.

POST /movies

func (*Client) CreateMovieGenre

func (c *Client) CreateMovieGenre(ctx context.Context, request CreateMovieGenreReq) (res CreateMovieGenreRes, err error)

CreateMovieGenre invokes createMovieGenre operation.

Creates a new MovieGenre and persists it to storage.

POST /movie-genres

func (*Client) CreatePicture

func (c *Client) CreatePicture(ctx context.Context, request CreatePictureReq) (res CreatePictureRes, err error)

CreatePicture invokes createPicture operation.

Creates a new Picture and persists it to storage.

POST /pictures

func (*Client) CreateRating

func (c *Client) CreateRating(ctx context.Context, request CreateRatingReq) (res CreateRatingRes, err error)

CreateRating invokes createRating operation.

Creates a new Rating and persists it to storage.

POST /ratings

func (*Client) DeleteArtist

func (c *Client) DeleteArtist(ctx context.Context, params DeleteArtistParams) (res DeleteArtistRes, err error)

DeleteArtist invokes deleteArtist operation.

Deletes the Artist with the requested ID.

DELETE /artists/{id}

func (*Client) DeleteCountry

func (c *Client) DeleteCountry(ctx context.Context, params DeleteCountryParams) (res DeleteCountryRes, err error)

DeleteCountry invokes deleteCountry operation.

Deletes the Country with the requested ID.

DELETE /countries/{id}

func (*Client) DeleteFile

func (c *Client) DeleteFile(ctx context.Context, params DeleteFileParams) (res DeleteFileRes, err error)

DeleteFile invokes deleteFile operation.

Deletes the File with the requested ID.

DELETE /files/{id}

func (*Client) DeleteMovie

func (c *Client) DeleteMovie(ctx context.Context, params DeleteMovieParams) (res DeleteMovieRes, err error)

DeleteMovie invokes deleteMovie operation.

Deletes the Movie with the requested ID.

DELETE /movies/{id}

func (*Client) DeleteMovieGenre

func (c *Client) DeleteMovieGenre(ctx context.Context, params DeleteMovieGenreParams) (res DeleteMovieGenreRes, err error)

DeleteMovieGenre invokes deleteMovieGenre operation.

Deletes the MovieGenre with the requested ID.

DELETE /movie-genres/{id}

func (*Client) DeletePicture

func (c *Client) DeletePicture(ctx context.Context, params DeletePictureParams) (res DeletePictureRes, err error)

DeletePicture invokes deletePicture operation.

Deletes the Picture with the requested ID.

DELETE /pictures/{id}

func (*Client) DeleteRating

func (c *Client) DeleteRating(ctx context.Context, params DeleteRatingParams) (res DeleteRatingRes, err error)

DeleteRating invokes deleteRating operation.

Deletes the Rating with the requested ID.

DELETE /ratings/{id}

func (*Client) ListArtist

func (c *Client) ListArtist(ctx context.Context, params ListArtistParams) (res ListArtistRes, err error)

ListArtist invokes listArtist operation.

List Artists.

GET /artists

func (*Client) ListArtistActed

func (c *Client) ListArtistActed(ctx context.Context, params ListArtistActedParams) (res ListArtistActedRes, err error)

ListArtistActed invokes listArtistActed operation.

List attached Acteds.

GET /artists/{id}/acted

func (*Client) ListArtistCountries

func (c *Client) ListArtistCountries(ctx context.Context, params ListArtistCountriesParams) (res ListArtistCountriesRes, err error)

ListArtistCountries invokes listArtistCountries operation.

List attached Countries.

GET /artists/{id}/countries

func (*Client) ListArtistDirected

func (c *Client) ListArtistDirected(ctx context.Context, params ListArtistDirectedParams) (res ListArtistDirectedRes, err error)

ListArtistDirected invokes listArtistDirected operation.

List attached Directeds.

GET /artists/{id}/directed

func (*Client) ListArtistPictures

func (c *Client) ListArtistPictures(ctx context.Context, params ListArtistPicturesParams) (res ListArtistPicturesRes, err error)

ListArtistPictures invokes listArtistPictures operation.

List attached Pictures.

GET /artists/{id}/pictures

func (*Client) ListArtistWrote

func (c *Client) ListArtistWrote(ctx context.Context, params ListArtistWroteParams) (res ListArtistWroteRes, err error)

ListArtistWrote invokes listArtistWrote operation.

List attached Wrotes.

GET /artists/{id}/wrote

func (*Client) ListCountry

func (c *Client) ListCountry(ctx context.Context, params ListCountryParams) (res ListCountryRes, err error)

ListCountry invokes listCountry operation.

List Countries.

GET /countries

func (*Client) ListCountryArtists

func (c *Client) ListCountryArtists(ctx context.Context, params ListCountryArtistsParams) (res ListCountryArtistsRes, err error)

ListCountryArtists invokes listCountryArtists operation.

List attached Artists.

GET /countries/{id}/artists

func (*Client) ListCountryMovies

func (c *Client) ListCountryMovies(ctx context.Context, params ListCountryMoviesParams) (res ListCountryMoviesRes, err error)

ListCountryMovies invokes listCountryMovies operation.

List attached Movies.

GET /countries/{id}/movies

func (*Client) ListFile

func (c *Client) ListFile(ctx context.Context, params ListFileParams) (res ListFileRes, err error)

ListFile invokes listFile operation.

List Files.

GET /files

func (*Client) ListMovie

func (c *Client) ListMovie(ctx context.Context, params ListMovieParams) (res ListMovieRes, err error)

ListMovie invokes listMovie operation.

List Movies.

GET /movies

func (*Client) ListMovieCast

func (c *Client) ListMovieCast(ctx context.Context, params ListMovieCastParams) (res ListMovieCastRes, err error)

ListMovieCast invokes listMovieCast operation.

List attached Casts.

GET /movies/{id}/cast

func (*Client) ListMovieCountries

func (c *Client) ListMovieCountries(ctx context.Context, params ListMovieCountriesParams) (res ListMovieCountriesRes, err error)

ListMovieCountries invokes listMovieCountries operation.

List attached Countries.

GET /movies/{id}/countries

func (*Client) ListMovieDirectors

func (c *Client) ListMovieDirectors(ctx context.Context, params ListMovieDirectorsParams) (res ListMovieDirectorsRes, err error)

ListMovieDirectors invokes listMovieDirectors operation.

List attached Directors.

GET /movies/{id}/directors

func (*Client) ListMovieFanart

func (c *Client) ListMovieFanart(ctx context.Context, params ListMovieFanartParams) (res ListMovieFanartRes, err error)

ListMovieFanart invokes listMovieFanart operation.

List attached Fanarts.

GET /movies/{id}/fanart

func (*Client) ListMovieGenre

func (c *Client) ListMovieGenre(ctx context.Context, params ListMovieGenreParams) (res ListMovieGenreRes, err error)

ListMovieGenre invokes listMovieGenre operation.

List MovieGenres.

GET /movie-genres

func (*Client) ListMovieGenreMovies

func (c *Client) ListMovieGenreMovies(ctx context.Context, params ListMovieGenreMoviesParams) (res ListMovieGenreMoviesRes, err error)

ListMovieGenreMovies invokes listMovieGenreMovies operation.

List attached Movies.

GET /movie-genres/{id}/movies

func (*Client) ListMovieGenres

func (c *Client) ListMovieGenres(ctx context.Context, params ListMovieGenresParams) (res ListMovieGenresRes, err error)

ListMovieGenres invokes listMovieGenres operation.

List attached Genres.

GET /movies/{id}/genres

func (*Client) ListMovieRatings

func (c *Client) ListMovieRatings(ctx context.Context, params ListMovieRatingsParams) (res ListMovieRatingsRes, err error)

ListMovieRatings invokes listMovieRatings operation.

List attached Ratings.

GET /movies/{id}/ratings

func (*Client) ListMovieWriters

func (c *Client) ListMovieWriters(ctx context.Context, params ListMovieWritersParams) (res ListMovieWritersRes, err error)

ListMovieWriters invokes listMovieWriters operation.

List attached Writers.

GET /movies/{id}/writers

func (*Client) ListPicture

func (c *Client) ListPicture(ctx context.Context, params ListPictureParams) (res ListPictureRes, err error)

ListPicture invokes listPicture operation.

List Pictures.

GET /pictures

func (*Client) ListRating

func (c *Client) ListRating(ctx context.Context, params ListRatingParams) (res ListRatingRes, err error)

ListRating invokes listRating operation.

List Ratings.

GET /ratings

func (*Client) ReadArtist

func (c *Client) ReadArtist(ctx context.Context, params ReadArtistParams) (res ReadArtistRes, err error)

ReadArtist invokes readArtist operation.

Finds the Artist with the requested ID and returns it.

GET /artists/{id}

func (*Client) ReadArtistProfilePicture

func (c *Client) ReadArtistProfilePicture(ctx context.Context, params ReadArtistProfilePictureParams) (res ReadArtistProfilePictureRes, err error)

ReadArtistProfilePicture invokes readArtistProfilePicture operation.

Find the attached Picture of the Artist with the given ID.

GET /artists/{id}/profile-picture

func (*Client) ReadCountry

func (c *Client) ReadCountry(ctx context.Context, params ReadCountryParams) (res ReadCountryRes, err error)

ReadCountry invokes readCountry operation.

Finds the Country with the requested ID and returns it.

GET /countries/{id}

func (*Client) ReadFile

func (c *Client) ReadFile(ctx context.Context, params ReadFileParams) (res ReadFileRes, err error)

ReadFile invokes readFile operation.

Finds the File with the requested ID and returns it.

GET /files/{id}

func (*Client) ReadFileMovie

func (c *Client) ReadFileMovie(ctx context.Context, params ReadFileMovieParams) (res ReadFileMovieRes, err error)

ReadFileMovie invokes readFileMovie operation.

Find the attached Movie of the File with the given ID.

GET /files/{id}/movie

func (*Client) ReadMovie

func (c *Client) ReadMovie(ctx context.Context, params ReadMovieParams) (res ReadMovieRes, err error)

ReadMovie invokes readMovie operation.

Finds the Movie with the requested ID and returns it.

GET /movies/{id}

func (*Client) ReadMovieFile

func (c *Client) ReadMovieFile(ctx context.Context, params ReadMovieFileParams) (res ReadMovieFileRes, err error)

ReadMovieFile invokes readMovieFile operation.

Find the attached File of the Movie with the given ID.

GET /movies/{id}/file

func (*Client) ReadMovieGenre

func (c *Client) ReadMovieGenre(ctx context.Context, params ReadMovieGenreParams) (res ReadMovieGenreRes, err error)

ReadMovieGenre invokes readMovieGenre operation.

Finds the MovieGenre with the requested ID and returns it.

GET /movie-genres/{id}

func (*Client) ReadMoviePoster

func (c *Client) ReadMoviePoster(ctx context.Context, params ReadMoviePosterParams) (res ReadMoviePosterRes, err error)

ReadMoviePoster invokes readMoviePoster operation.

Find the attached Picture of the Movie with the given ID.

GET /movies/{id}/poster

func (*Client) ReadPicture

func (c *Client) ReadPicture(ctx context.Context, params ReadPictureParams) (res ReadPictureRes, err error)

ReadPicture invokes readPicture operation.

Finds the Picture with the requested ID and returns it.

GET /pictures/{id}

func (*Client) ReadRating

func (c *Client) ReadRating(ctx context.Context, params ReadRatingParams) (res ReadRatingRes, err error)

ReadRating invokes readRating operation.

Finds the Rating with the requested ID and returns it.

GET /ratings/{id}

func (*Client) UpdateArtist

func (c *Client) UpdateArtist(ctx context.Context, request UpdateArtistReq, params UpdateArtistParams) (res UpdateArtistRes, err error)

UpdateArtist invokes updateArtist operation.

Updates a Artist and persists changes to storage.

PATCH /artists/{id}

func (*Client) UpdateCountry

func (c *Client) UpdateCountry(ctx context.Context, request UpdateCountryReq, params UpdateCountryParams) (res UpdateCountryRes, err error)

UpdateCountry invokes updateCountry operation.

Updates a Country and persists changes to storage.

PATCH /countries/{id}

func (*Client) UpdateFile

func (c *Client) UpdateFile(ctx context.Context, request UpdateFileReq, params UpdateFileParams) (res UpdateFileRes, err error)

UpdateFile invokes updateFile operation.

Updates a File and persists changes to storage.

PATCH /files/{id}

func (*Client) UpdateMovie

func (c *Client) UpdateMovie(ctx context.Context, request UpdateMovieReq, params UpdateMovieParams) (res UpdateMovieRes, err error)

UpdateMovie invokes updateMovie operation.

Updates a Movie and persists changes to storage.

PATCH /movies/{id}

func (*Client) UpdateMovieGenre

func (c *Client) UpdateMovieGenre(ctx context.Context, request UpdateMovieGenreReq, params UpdateMovieGenreParams) (res UpdateMovieGenreRes, err error)

UpdateMovieGenre invokes updateMovieGenre operation.

Updates a MovieGenre and persists changes to storage.

PATCH /movie-genres/{id}

func (*Client) UpdatePicture

func (c *Client) UpdatePicture(ctx context.Context, request UpdatePictureReq, params UpdatePictureParams) (res UpdatePictureRes, err error)

UpdatePicture invokes updatePicture operation.

Updates a Picture and persists changes to storage.

PATCH /pictures/{id}

func (*Client) UpdateRating

func (c *Client) UpdateRating(ctx context.Context, request UpdateRatingReq, params UpdateRatingParams) (res UpdateRatingRes, err error)

UpdateRating invokes updateRating operation.

Updates a Rating and persists changes to storage.

PATCH /ratings/{id}

type CountryArtistsList

type CountryArtistsList struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/Country_ArtistsList

func NewCountryArtistsList

func NewCountryArtistsList(e *ent.Artist) *CountryArtistsList

func NewCountryArtistsLists

func NewCountryArtistsLists(es []*ent.Artist) []CountryArtistsList

func (*CountryArtistsList) Decode

func (s *CountryArtistsList) Decode(d *jx.Decoder) error

Decode decodes CountryArtistsList from json.

func (*CountryArtistsList) Elem

func (CountryArtistsList) Encode

func (s CountryArtistsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CountryCreate

type CountryCreate struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
	Code string "json:\"code\""
}

Ref: #/components/schemas/CountryCreate

func NewCountryCreate

func NewCountryCreate(e *ent.Country) *CountryCreate

func NewCountryCreates

func NewCountryCreates(es []*ent.Country) []CountryCreate

func (*CountryCreate) Decode

func (s *CountryCreate) Decode(d *jx.Decoder) error

Decode decodes CountryCreate from json.

func (*CountryCreate) Elem

func (c *CountryCreate) Elem() CountryCreate

func (CountryCreate) Encode

func (s CountryCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CountryList

type CountryList struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
	Code string "json:\"code\""
}

Ref: #/components/schemas/CountryList

func NewCountryList

func NewCountryList(e *ent.Country) *CountryList

func NewCountryLists

func NewCountryLists(es []*ent.Country) []CountryList

func (*CountryList) Decode

func (s *CountryList) Decode(d *jx.Decoder) error

Decode decodes CountryList from json.

func (*CountryList) Elem

func (c *CountryList) Elem() CountryList

func (CountryList) Encode

func (s CountryList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CountryMoviesList

type CountryMoviesList struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/Country_MoviesList

func NewCountryMoviesList

func NewCountryMoviesList(e *ent.Movie) *CountryMoviesList

func NewCountryMoviesLists

func NewCountryMoviesLists(es []*ent.Movie) []CountryMoviesList

func (*CountryMoviesList) Decode

func (s *CountryMoviesList) Decode(d *jx.Decoder) error

Decode decodes CountryMoviesList from json.

func (*CountryMoviesList) Elem

func (CountryMoviesList) Encode

func (s CountryMoviesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CountryRead

type CountryRead struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
	Code string "json:\"code\""
}

Ref: #/components/schemas/CountryRead

func NewCountryRead

func NewCountryRead(e *ent.Country) *CountryRead

func NewCountryReads

func NewCountryReads(es []*ent.Country) []CountryRead

func (*CountryRead) Decode

func (s *CountryRead) Decode(d *jx.Decoder) error

Decode decodes CountryRead from json.

func (*CountryRead) Elem

func (c *CountryRead) Elem() CountryRead

func (CountryRead) Encode

func (s CountryRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CountryUpdate

type CountryUpdate struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
	Code string "json:\"code\""
}

Ref: #/components/schemas/CountryUpdate

func NewCountryUpdate

func NewCountryUpdate(e *ent.Country) *CountryUpdate

func NewCountryUpdates

func NewCountryUpdates(es []*ent.Country) []CountryUpdate

func (*CountryUpdate) Decode

func (s *CountryUpdate) Decode(d *jx.Decoder) error

Decode decodes CountryUpdate from json.

func (*CountryUpdate) Elem

func (c *CountryUpdate) Elem() CountryUpdate

func (CountryUpdate) Encode

func (s CountryUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreateArtistReq

type CreateArtistReq struct {
	Name           string      "json:\"name\""
	Birthday       OptDateTime "json:\"birthday\""
	ProfilePicture OptInt      "json:\"profile_picture\""
	Pictures       []int       "json:\"pictures\""
	Directed       []int       "json:\"directed\""
	Acted          []int       "json:\"acted\""
	Wrote          []int       "json:\"wrote\""
	Countries      []int       "json:\"countries\""
}

func (*CreateArtistReq) Decode

func (s *CreateArtistReq) Decode(d *jx.Decoder) error

Decode decodes CreateArtistReq from json.

func (CreateArtistReq) Encode

func (s CreateArtistReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreateArtistRes

type CreateArtistRes interface {
	// contains filtered or unexported methods
}

type CreateCountryReq

type CreateCountryReq struct {
	Name    string "json:\"name\""
	Code    string "json:\"code\""
	Movies  []int  "json:\"movies\""
	Artists []int  "json:\"artists\""
}

func (*CreateCountryReq) Decode

func (s *CreateCountryReq) Decode(d *jx.Decoder) error

Decode decodes CreateCountryReq from json.

func (CreateCountryReq) Encode

func (s CreateCountryReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreateCountryRes

type CreateCountryRes interface {
	// contains filtered or unexported methods
}

type CreateFileReq

type CreateFileReq struct {
	Name                 string            "json:\"name\""
	Path                 string            "json:\"path\""
	Type                 CreateFileReqType "json:\"type\""
	ExternalID           OptString         "json:\"external_id\""
	ExternalInfoProvider OptString         "json:\"external_info_provider\""
	Results              OptString         "json:\"results\""
	Synced               bool              "json:\"synced\""
	Movie                OptInt            "json:\"movie\""
}

func (*CreateFileReq) Decode

func (s *CreateFileReq) Decode(d *jx.Decoder) error

Decode decodes CreateFileReq from json.

func (CreateFileReq) Encode

func (s CreateFileReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (CreateFileReq) Validate

func (s CreateFileReq) Validate() error

type CreateFileReqType

type CreateFileReqType string
const (
	CreateFileReqTypeAudio CreateFileReqType = "audio"
	CreateFileReqTypeVideo CreateFileReqType = "video"
	CreateFileReqTypeImage CreateFileReqType = "image"
)

func (*CreateFileReqType) Decode

func (s *CreateFileReqType) Decode(d *jx.Decoder) error

Decode decodes CreateFileReqType from json.

func (CreateFileReqType) Encode

func (s CreateFileReqType) Encode(e *jx.Encoder)

Encode encodes CreateFileReqType as json.

func (CreateFileReqType) Validate

func (s CreateFileReqType) Validate() error

type CreateFileRes

type CreateFileRes interface {
	// contains filtered or unexported methods
}

type CreateMovieGenreReq

type CreateMovieGenreReq struct {
	Name   string "json:\"name\""
	Movies []int  "json:\"movies\""
}

func (*CreateMovieGenreReq) Decode

func (s *CreateMovieGenreReq) Decode(d *jx.Decoder) error

Decode decodes CreateMovieGenreReq from json.

func (CreateMovieGenreReq) Encode

func (s CreateMovieGenreReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreateMovieGenreRes

type CreateMovieGenreRes interface {
	// contains filtered or unexported methods
}

type CreateMovieReq

type CreateMovieReq struct {
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
	File          OptInt      "json:\"file\""
	Ratings       []int       "json:\"ratings\""
	Poster        OptInt      "json:\"poster\""
	Fanart        []int       "json:\"fanart\""
	Cast          []int       "json:\"cast\""
	Directors     []int       "json:\"directors\""
	Writers       []int       "json:\"writers\""
	Genres        []int       "json:\"genres\""
	Countries     []int       "json:\"countries\""
}

func (*CreateMovieReq) Decode

func (s *CreateMovieReq) Decode(d *jx.Decoder) error

Decode decodes CreateMovieReq from json.

func (CreateMovieReq) Encode

func (s CreateMovieReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreateMovieRes

type CreateMovieRes interface {
	// contains filtered or unexported methods
}

type CreatePictureReq

type CreatePictureReq struct {
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

func (*CreatePictureReq) Decode

func (s *CreatePictureReq) Decode(d *jx.Decoder) error

Decode decodes CreatePictureReq from json.

func (CreatePictureReq) Encode

func (s CreatePictureReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreatePictureRes

type CreatePictureRes interface {
	// contains filtered or unexported methods
}

type CreateRatingReq

type CreateRatingReq struct {
	Origin           string "json:\"origin\""
	OriginalRating   string "json:\"original_rating\""
	NormalizedRating int    "json:\"normalized_rating\""
}

func (*CreateRatingReq) Decode

func (s *CreateRatingReq) Decode(d *jx.Decoder) error

Decode decodes CreateRatingReq from json.

func (CreateRatingReq) Encode

func (s CreateRatingReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type CreateRatingRes

type CreateRatingRes interface {
	// contains filtered or unexported methods
}

type DeleteArtistNoContent

type DeleteArtistNoContent struct{}

DeleteArtistNoContent is response for DeleteArtist operation.

type DeleteArtistParams

type DeleteArtistParams struct {
	// ID of the Artist.
	ID int
}

type DeleteArtistRes

type DeleteArtistRes interface {
	// contains filtered or unexported methods
}

type DeleteCountryNoContent

type DeleteCountryNoContent struct{}

DeleteCountryNoContent is response for DeleteCountry operation.

type DeleteCountryParams

type DeleteCountryParams struct {
	// ID of the Country.
	ID int
}

type DeleteCountryRes

type DeleteCountryRes interface {
	// contains filtered or unexported methods
}

type DeleteFileNoContent

type DeleteFileNoContent struct{}

DeleteFileNoContent is response for DeleteFile operation.

type DeleteFileParams

type DeleteFileParams struct {
	// ID of the File.
	ID int
}

type DeleteFileRes

type DeleteFileRes interface {
	// contains filtered or unexported methods
}

type DeleteMovieGenreNoContent

type DeleteMovieGenreNoContent struct{}

DeleteMovieGenreNoContent is response for DeleteMovieGenre operation.

type DeleteMovieGenreParams

type DeleteMovieGenreParams struct {
	// ID of the MovieGenre.
	ID int
}

type DeleteMovieGenreRes

type DeleteMovieGenreRes interface {
	// contains filtered or unexported methods
}

type DeleteMovieNoContent

type DeleteMovieNoContent struct{}

DeleteMovieNoContent is response for DeleteMovie operation.

type DeleteMovieParams

type DeleteMovieParams struct {
	// ID of the Movie.
	ID int
}

type DeleteMovieRes

type DeleteMovieRes interface {
	// contains filtered or unexported methods
}

type DeletePictureNoContent

type DeletePictureNoContent struct{}

DeletePictureNoContent is response for DeletePicture operation.

type DeletePictureParams

type DeletePictureParams struct {
	// ID of the Picture.
	ID int
}

type DeletePictureRes

type DeletePictureRes interface {
	// contains filtered or unexported methods
}

type DeleteRatingNoContent

type DeleteRatingNoContent struct{}

DeleteRatingNoContent is response for DeleteRating operation.

type DeleteRatingParams

type DeleteRatingParams struct {
	// ID of the Rating.
	ID int
}

type DeleteRatingRes

type DeleteRatingRes interface {
	// contains filtered or unexported methods
}

type FileCreate

type FileCreate struct {
	ID                   int            "json:\"id\""
	Name                 string         "json:\"name\""
	Path                 string         "json:\"path\""
	Type                 FileCreateType "json:\"type\""
	ExternalID           OptString      "json:\"external_id\""
	ExternalInfoProvider OptString      "json:\"external_info_provider\""
	Results              OptString      "json:\"results\""
	Synced               bool           "json:\"synced\""
}

Ref: #/components/schemas/FileCreate

func NewFileCreate

func NewFileCreate(e *ent.File) *FileCreate

func NewFileCreates

func NewFileCreates(es []*ent.File) []FileCreate

func (*FileCreate) Decode

func (s *FileCreate) Decode(d *jx.Decoder) error

Decode decodes FileCreate from json.

func (*FileCreate) Elem

func (f *FileCreate) Elem() FileCreate

func (FileCreate) Encode

func (s FileCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FileCreate) Validate

func (s FileCreate) Validate() error

type FileCreateType

type FileCreateType string
const (
	FileCreateTypeAudio FileCreateType = "audio"
	FileCreateTypeVideo FileCreateType = "video"
	FileCreateTypeImage FileCreateType = "image"
)

func (*FileCreateType) Decode

func (s *FileCreateType) Decode(d *jx.Decoder) error

Decode decodes FileCreateType from json.

func (FileCreateType) Encode

func (s FileCreateType) Encode(e *jx.Encoder)

Encode encodes FileCreateType as json.

func (FileCreateType) Validate

func (s FileCreateType) Validate() error

type FileList

type FileList struct {
	ID                   int          "json:\"id\""
	Name                 string       "json:\"name\""
	Path                 string       "json:\"path\""
	Type                 FileListType "json:\"type\""
	ExternalID           OptString    "json:\"external_id\""
	ExternalInfoProvider OptString    "json:\"external_info_provider\""
	Results              OptString    "json:\"results\""
	Synced               bool         "json:\"synced\""
}

Ref: #/components/schemas/FileList

func NewFileList

func NewFileList(e *ent.File) *FileList

func NewFileLists

func NewFileLists(es []*ent.File) []FileList

func (*FileList) Decode

func (s *FileList) Decode(d *jx.Decoder) error

Decode decodes FileList from json.

func (*FileList) Elem

func (f *FileList) Elem() FileList

func (FileList) Encode

func (s FileList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FileList) Validate

func (s FileList) Validate() error

type FileListType

type FileListType string
const (
	FileListTypeAudio FileListType = "audio"
	FileListTypeVideo FileListType = "video"
	FileListTypeImage FileListType = "image"
)

func (*FileListType) Decode

func (s *FileListType) Decode(d *jx.Decoder) error

Decode decodes FileListType from json.

func (FileListType) Encode

func (s FileListType) Encode(e *jx.Encoder)

Encode encodes FileListType as json.

func (FileListType) Validate

func (s FileListType) Validate() error

type FileMovieRead

type FileMovieRead struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/File_MovieRead

func NewFileMovieRead

func NewFileMovieRead(e *ent.Movie) *FileMovieRead

func NewFileMovieReads

func NewFileMovieReads(es []*ent.Movie) []FileMovieRead

func (*FileMovieRead) Decode

func (s *FileMovieRead) Decode(d *jx.Decoder) error

Decode decodes FileMovieRead from json.

func (*FileMovieRead) Elem

func (m *FileMovieRead) Elem() FileMovieRead

func (FileMovieRead) Encode

func (s FileMovieRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type FileRead

type FileRead struct {
	ID                   int          "json:\"id\""
	Name                 string       "json:\"name\""
	Path                 string       "json:\"path\""
	Type                 FileReadType "json:\"type\""
	ExternalID           OptString    "json:\"external_id\""
	ExternalInfoProvider OptString    "json:\"external_info_provider\""
	Results              OptString    "json:\"results\""
	Synced               bool         "json:\"synced\""
}

Ref: #/components/schemas/FileRead

func NewFileRead

func NewFileRead(e *ent.File) *FileRead

func NewFileReads

func NewFileReads(es []*ent.File) []FileRead

func (*FileRead) Decode

func (s *FileRead) Decode(d *jx.Decoder) error

Decode decodes FileRead from json.

func (*FileRead) Elem

func (f *FileRead) Elem() FileRead

func (FileRead) Encode

func (s FileRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FileRead) Validate

func (s FileRead) Validate() error

type FileReadType

type FileReadType string
const (
	FileReadTypeAudio FileReadType = "audio"
	FileReadTypeVideo FileReadType = "video"
	FileReadTypeImage FileReadType = "image"
)

func (*FileReadType) Decode

func (s *FileReadType) Decode(d *jx.Decoder) error

Decode decodes FileReadType from json.

func (FileReadType) Encode

func (s FileReadType) Encode(e *jx.Encoder)

Encode encodes FileReadType as json.

func (FileReadType) Validate

func (s FileReadType) Validate() error

type FileUpdate

type FileUpdate struct {
	ID                   int            "json:\"id\""
	Name                 string         "json:\"name\""
	Path                 string         "json:\"path\""
	Type                 FileUpdateType "json:\"type\""
	ExternalID           OptString      "json:\"external_id\""
	ExternalInfoProvider OptString      "json:\"external_info_provider\""
	Results              OptString      "json:\"results\""
	Synced               bool           "json:\"synced\""
}

Ref: #/components/schemas/FileUpdate

func NewFileUpdate

func NewFileUpdate(e *ent.File) *FileUpdate

func NewFileUpdates

func NewFileUpdates(es []*ent.File) []FileUpdate

func (*FileUpdate) Decode

func (s *FileUpdate) Decode(d *jx.Decoder) error

Decode decodes FileUpdate from json.

func (*FileUpdate) Elem

func (f *FileUpdate) Elem() FileUpdate

func (FileUpdate) Encode

func (s FileUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FileUpdate) Validate

func (s FileUpdate) Validate() error

type FileUpdateType

type FileUpdateType string
const (
	FileUpdateTypeAudio FileUpdateType = "audio"
	FileUpdateTypeVideo FileUpdateType = "video"
	FileUpdateTypeImage FileUpdateType = "image"
)

func (*FileUpdateType) Decode

func (s *FileUpdateType) Decode(d *jx.Decoder) error

Decode decodes FileUpdateType from json.

func (FileUpdateType) Encode

func (s FileUpdateType) Encode(e *jx.Encoder)

Encode encodes FileUpdateType as json.

func (FileUpdateType) Validate

func (s FileUpdateType) Validate() error

type Handler

type Handler interface {
	// CreateArtist implements createArtist operation.
	//
	// Creates a new Artist and persists it to storage.
	//
	// POST /artists
	CreateArtist(ctx context.Context, req CreateArtistReq) (CreateArtistRes, error)
	// CreateCountry implements createCountry operation.
	//
	// Creates a new Country and persists it to storage.
	//
	// POST /countries
	CreateCountry(ctx context.Context, req CreateCountryReq) (CreateCountryRes, error)
	// CreateFile implements createFile operation.
	//
	// Creates a new File and persists it to storage.
	//
	// POST /files
	CreateFile(ctx context.Context, req CreateFileReq) (CreateFileRes, error)
	// CreateMovie implements createMovie operation.
	//
	// Creates a new Movie and persists it to storage.
	//
	// POST /movies
	CreateMovie(ctx context.Context, req CreateMovieReq) (CreateMovieRes, error)
	// CreateMovieGenre implements createMovieGenre operation.
	//
	// Creates a new MovieGenre and persists it to storage.
	//
	// POST /movie-genres
	CreateMovieGenre(ctx context.Context, req CreateMovieGenreReq) (CreateMovieGenreRes, error)
	// CreatePicture implements createPicture operation.
	//
	// Creates a new Picture and persists it to storage.
	//
	// POST /pictures
	CreatePicture(ctx context.Context, req CreatePictureReq) (CreatePictureRes, error)
	// CreateRating implements createRating operation.
	//
	// Creates a new Rating and persists it to storage.
	//
	// POST /ratings
	CreateRating(ctx context.Context, req CreateRatingReq) (CreateRatingRes, error)
	// DeleteArtist implements deleteArtist operation.
	//
	// Deletes the Artist with the requested ID.
	//
	// DELETE /artists/{id}
	DeleteArtist(ctx context.Context, params DeleteArtistParams) (DeleteArtistRes, error)
	// DeleteCountry implements deleteCountry operation.
	//
	// Deletes the Country with the requested ID.
	//
	// DELETE /countries/{id}
	DeleteCountry(ctx context.Context, params DeleteCountryParams) (DeleteCountryRes, error)
	// DeleteFile implements deleteFile operation.
	//
	// Deletes the File with the requested ID.
	//
	// DELETE /files/{id}
	DeleteFile(ctx context.Context, params DeleteFileParams) (DeleteFileRes, error)
	// DeleteMovie implements deleteMovie operation.
	//
	// Deletes the Movie with the requested ID.
	//
	// DELETE /movies/{id}
	DeleteMovie(ctx context.Context, params DeleteMovieParams) (DeleteMovieRes, error)
	// DeleteMovieGenre implements deleteMovieGenre operation.
	//
	// Deletes the MovieGenre with the requested ID.
	//
	// DELETE /movie-genres/{id}
	DeleteMovieGenre(ctx context.Context, params DeleteMovieGenreParams) (DeleteMovieGenreRes, error)
	// DeletePicture implements deletePicture operation.
	//
	// Deletes the Picture with the requested ID.
	//
	// DELETE /pictures/{id}
	DeletePicture(ctx context.Context, params DeletePictureParams) (DeletePictureRes, error)
	// DeleteRating implements deleteRating operation.
	//
	// Deletes the Rating with the requested ID.
	//
	// DELETE /ratings/{id}
	DeleteRating(ctx context.Context, params DeleteRatingParams) (DeleteRatingRes, error)
	// ListArtist implements listArtist operation.
	//
	// List Artists.
	//
	// GET /artists
	ListArtist(ctx context.Context, params ListArtistParams) (ListArtistRes, error)
	// ListArtistActed implements listArtistActed operation.
	//
	// List attached Acteds.
	//
	// GET /artists/{id}/acted
	ListArtistActed(ctx context.Context, params ListArtistActedParams) (ListArtistActedRes, error)
	// ListArtistCountries implements listArtistCountries operation.
	//
	// List attached Countries.
	//
	// GET /artists/{id}/countries
	ListArtistCountries(ctx context.Context, params ListArtistCountriesParams) (ListArtistCountriesRes, error)
	// ListArtistDirected implements listArtistDirected operation.
	//
	// List attached Directeds.
	//
	// GET /artists/{id}/directed
	ListArtistDirected(ctx context.Context, params ListArtistDirectedParams) (ListArtistDirectedRes, error)
	// ListArtistPictures implements listArtistPictures operation.
	//
	// List attached Pictures.
	//
	// GET /artists/{id}/pictures
	ListArtistPictures(ctx context.Context, params ListArtistPicturesParams) (ListArtistPicturesRes, error)
	// ListArtistWrote implements listArtistWrote operation.
	//
	// List attached Wrotes.
	//
	// GET /artists/{id}/wrote
	ListArtistWrote(ctx context.Context, params ListArtistWroteParams) (ListArtistWroteRes, error)
	// ListCountry implements listCountry operation.
	//
	// List Countries.
	//
	// GET /countries
	ListCountry(ctx context.Context, params ListCountryParams) (ListCountryRes, error)
	// ListCountryArtists implements listCountryArtists operation.
	//
	// List attached Artists.
	//
	// GET /countries/{id}/artists
	ListCountryArtists(ctx context.Context, params ListCountryArtistsParams) (ListCountryArtistsRes, error)
	// ListCountryMovies implements listCountryMovies operation.
	//
	// List attached Movies.
	//
	// GET /countries/{id}/movies
	ListCountryMovies(ctx context.Context, params ListCountryMoviesParams) (ListCountryMoviesRes, error)
	// ListFile implements listFile operation.
	//
	// List Files.
	//
	// GET /files
	ListFile(ctx context.Context, params ListFileParams) (ListFileRes, error)
	// ListMovie implements listMovie operation.
	//
	// List Movies.
	//
	// GET /movies
	ListMovie(ctx context.Context, params ListMovieParams) (ListMovieRes, error)
	// ListMovieCast implements listMovieCast operation.
	//
	// List attached Casts.
	//
	// GET /movies/{id}/cast
	ListMovieCast(ctx context.Context, params ListMovieCastParams) (ListMovieCastRes, error)
	// ListMovieCountries implements listMovieCountries operation.
	//
	// List attached Countries.
	//
	// GET /movies/{id}/countries
	ListMovieCountries(ctx context.Context, params ListMovieCountriesParams) (ListMovieCountriesRes, error)
	// ListMovieDirectors implements listMovieDirectors operation.
	//
	// List attached Directors.
	//
	// GET /movies/{id}/directors
	ListMovieDirectors(ctx context.Context, params ListMovieDirectorsParams) (ListMovieDirectorsRes, error)
	// ListMovieFanart implements listMovieFanart operation.
	//
	// List attached Fanarts.
	//
	// GET /movies/{id}/fanart
	ListMovieFanart(ctx context.Context, params ListMovieFanartParams) (ListMovieFanartRes, error)
	// ListMovieGenre implements listMovieGenre operation.
	//
	// List MovieGenres.
	//
	// GET /movie-genres
	ListMovieGenre(ctx context.Context, params ListMovieGenreParams) (ListMovieGenreRes, error)
	// ListMovieGenreMovies implements listMovieGenreMovies operation.
	//
	// List attached Movies.
	//
	// GET /movie-genres/{id}/movies
	ListMovieGenreMovies(ctx context.Context, params ListMovieGenreMoviesParams) (ListMovieGenreMoviesRes, error)
	// ListMovieGenres implements listMovieGenres operation.
	//
	// List attached Genres.
	//
	// GET /movies/{id}/genres
	ListMovieGenres(ctx context.Context, params ListMovieGenresParams) (ListMovieGenresRes, error)
	// ListMovieRatings implements listMovieRatings operation.
	//
	// List attached Ratings.
	//
	// GET /movies/{id}/ratings
	ListMovieRatings(ctx context.Context, params ListMovieRatingsParams) (ListMovieRatingsRes, error)
	// ListMovieWriters implements listMovieWriters operation.
	//
	// List attached Writers.
	//
	// GET /movies/{id}/writers
	ListMovieWriters(ctx context.Context, params ListMovieWritersParams) (ListMovieWritersRes, error)
	// ListPicture implements listPicture operation.
	//
	// List Pictures.
	//
	// GET /pictures
	ListPicture(ctx context.Context, params ListPictureParams) (ListPictureRes, error)
	// ListRating implements listRating operation.
	//
	// List Ratings.
	//
	// GET /ratings
	ListRating(ctx context.Context, params ListRatingParams) (ListRatingRes, error)
	// ReadArtist implements readArtist operation.
	//
	// Finds the Artist with the requested ID and returns it.
	//
	// GET /artists/{id}
	ReadArtist(ctx context.Context, params ReadArtistParams) (ReadArtistRes, error)
	// ReadArtistProfilePicture implements readArtistProfilePicture operation.
	//
	// Find the attached Picture of the Artist with the given ID.
	//
	// GET /artists/{id}/profile-picture
	ReadArtistProfilePicture(ctx context.Context, params ReadArtistProfilePictureParams) (ReadArtistProfilePictureRes, error)
	// ReadCountry implements readCountry operation.
	//
	// Finds the Country with the requested ID and returns it.
	//
	// GET /countries/{id}
	ReadCountry(ctx context.Context, params ReadCountryParams) (ReadCountryRes, error)
	// ReadFile implements readFile operation.
	//
	// Finds the File with the requested ID and returns it.
	//
	// GET /files/{id}
	ReadFile(ctx context.Context, params ReadFileParams) (ReadFileRes, error)
	// ReadFileMovie implements readFileMovie operation.
	//
	// Find the attached Movie of the File with the given ID.
	//
	// GET /files/{id}/movie
	ReadFileMovie(ctx context.Context, params ReadFileMovieParams) (ReadFileMovieRes, error)
	// ReadMovie implements readMovie operation.
	//
	// Finds the Movie with the requested ID and returns it.
	//
	// GET /movies/{id}
	ReadMovie(ctx context.Context, params ReadMovieParams) (ReadMovieRes, error)
	// ReadMovieFile implements readMovieFile operation.
	//
	// Find the attached File of the Movie with the given ID.
	//
	// GET /movies/{id}/file
	ReadMovieFile(ctx context.Context, params ReadMovieFileParams) (ReadMovieFileRes, error)
	// ReadMovieGenre implements readMovieGenre operation.
	//
	// Finds the MovieGenre with the requested ID and returns it.
	//
	// GET /movie-genres/{id}
	ReadMovieGenre(ctx context.Context, params ReadMovieGenreParams) (ReadMovieGenreRes, error)
	// ReadMoviePoster implements readMoviePoster operation.
	//
	// Find the attached Picture of the Movie with the given ID.
	//
	// GET /movies/{id}/poster
	ReadMoviePoster(ctx context.Context, params ReadMoviePosterParams) (ReadMoviePosterRes, error)
	// ReadPicture implements readPicture operation.
	//
	// Finds the Picture with the requested ID and returns it.
	//
	// GET /pictures/{id}
	ReadPicture(ctx context.Context, params ReadPictureParams) (ReadPictureRes, error)
	// ReadRating implements readRating operation.
	//
	// Finds the Rating with the requested ID and returns it.
	//
	// GET /ratings/{id}
	ReadRating(ctx context.Context, params ReadRatingParams) (ReadRatingRes, error)
	// UpdateArtist implements updateArtist operation.
	//
	// Updates a Artist and persists changes to storage.
	//
	// PATCH /artists/{id}
	UpdateArtist(ctx context.Context, req UpdateArtistReq, params UpdateArtistParams) (UpdateArtistRes, error)
	// UpdateCountry implements updateCountry operation.
	//
	// Updates a Country and persists changes to storage.
	//
	// PATCH /countries/{id}
	UpdateCountry(ctx context.Context, req UpdateCountryReq, params UpdateCountryParams) (UpdateCountryRes, error)
	// UpdateFile implements updateFile operation.
	//
	// Updates a File and persists changes to storage.
	//
	// PATCH /files/{id}
	UpdateFile(ctx context.Context, req UpdateFileReq, params UpdateFileParams) (UpdateFileRes, error)
	// UpdateMovie implements updateMovie operation.
	//
	// Updates a Movie and persists changes to storage.
	//
	// PATCH /movies/{id}
	UpdateMovie(ctx context.Context, req UpdateMovieReq, params UpdateMovieParams) (UpdateMovieRes, error)
	// UpdateMovieGenre implements updateMovieGenre operation.
	//
	// Updates a MovieGenre and persists changes to storage.
	//
	// PATCH /movie-genres/{id}
	UpdateMovieGenre(ctx context.Context, req UpdateMovieGenreReq, params UpdateMovieGenreParams) (UpdateMovieGenreRes, error)
	// UpdatePicture implements updatePicture operation.
	//
	// Updates a Picture and persists changes to storage.
	//
	// PATCH /pictures/{id}
	UpdatePicture(ctx context.Context, req UpdatePictureReq, params UpdatePictureParams) (UpdatePictureRes, error)
	// UpdateRating implements updateRating operation.
	//
	// Updates a Rating and persists changes to storage.
	//
	// PATCH /ratings/{id}
	UpdateRating(ctx context.Context, req UpdateRatingReq, params UpdateRatingParams) (UpdateRatingRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type ListArtistActedOKApplicationJSON

type ListArtistActedOKApplicationJSON []ArtistActedList

func (*ListArtistActedOKApplicationJSON) Decode

Decode decodes ListArtistActedOKApplicationJSON from json.

func (ListArtistActedOKApplicationJSON) Encode

Encode encodes ListArtistActedOKApplicationJSON as json.

func (ListArtistActedOKApplicationJSON) Validate

type ListArtistActedParams

type ListArtistActedParams struct {
	// ID of the Artist.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListArtistActedRes

type ListArtistActedRes interface {
	// contains filtered or unexported methods
}

type ListArtistCountriesOKApplicationJSON

type ListArtistCountriesOKApplicationJSON []ArtistCountriesList

func (*ListArtistCountriesOKApplicationJSON) Decode

Decode decodes ListArtistCountriesOKApplicationJSON from json.

func (ListArtistCountriesOKApplicationJSON) Encode

Encode encodes ListArtistCountriesOKApplicationJSON as json.

func (ListArtistCountriesOKApplicationJSON) Validate

type ListArtistCountriesParams

type ListArtistCountriesParams struct {
	// ID of the Artist.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListArtistCountriesRes

type ListArtistCountriesRes interface {
	// contains filtered or unexported methods
}

type ListArtistDirectedOKApplicationJSON

type ListArtistDirectedOKApplicationJSON []ArtistDirectedList

func (*ListArtistDirectedOKApplicationJSON) Decode

Decode decodes ListArtistDirectedOKApplicationJSON from json.

func (ListArtistDirectedOKApplicationJSON) Encode

Encode encodes ListArtistDirectedOKApplicationJSON as json.

func (ListArtistDirectedOKApplicationJSON) Validate

type ListArtistDirectedParams

type ListArtistDirectedParams struct {
	// ID of the Artist.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListArtistDirectedRes

type ListArtistDirectedRes interface {
	// contains filtered or unexported methods
}

type ListArtistOKApplicationJSON

type ListArtistOKApplicationJSON []ArtistList

func (*ListArtistOKApplicationJSON) Decode

Decode decodes ListArtistOKApplicationJSON from json.

func (ListArtistOKApplicationJSON) Encode

func (s ListArtistOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListArtistOKApplicationJSON as json.

func (ListArtistOKApplicationJSON) Validate

func (s ListArtistOKApplicationJSON) Validate() error

type ListArtistParams

type ListArtistParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListArtistPicturesOKApplicationJSON

type ListArtistPicturesOKApplicationJSON []ArtistPicturesList

func (*ListArtistPicturesOKApplicationJSON) Decode

Decode decodes ListArtistPicturesOKApplicationJSON from json.

func (ListArtistPicturesOKApplicationJSON) Encode

Encode encodes ListArtistPicturesOKApplicationJSON as json.

func (ListArtistPicturesOKApplicationJSON) Validate

type ListArtistPicturesParams

type ListArtistPicturesParams struct {
	// ID of the Artist.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListArtistPicturesRes

type ListArtistPicturesRes interface {
	// contains filtered or unexported methods
}

type ListArtistRes

type ListArtistRes interface {
	// contains filtered or unexported methods
}

type ListArtistWroteOKApplicationJSON

type ListArtistWroteOKApplicationJSON []ArtistWroteList

func (*ListArtistWroteOKApplicationJSON) Decode

Decode decodes ListArtistWroteOKApplicationJSON from json.

func (ListArtistWroteOKApplicationJSON) Encode

Encode encodes ListArtistWroteOKApplicationJSON as json.

func (ListArtistWroteOKApplicationJSON) Validate

type ListArtistWroteParams

type ListArtistWroteParams struct {
	// ID of the Artist.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListArtistWroteRes

type ListArtistWroteRes interface {
	// contains filtered or unexported methods
}

type ListCountryArtistsOKApplicationJSON

type ListCountryArtistsOKApplicationJSON []CountryArtistsList

func (*ListCountryArtistsOKApplicationJSON) Decode

Decode decodes ListCountryArtistsOKApplicationJSON from json.

func (ListCountryArtistsOKApplicationJSON) Encode

Encode encodes ListCountryArtistsOKApplicationJSON as json.

func (ListCountryArtistsOKApplicationJSON) Validate

type ListCountryArtistsParams

type ListCountryArtistsParams struct {
	// ID of the Country.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListCountryArtistsRes

type ListCountryArtistsRes interface {
	// contains filtered or unexported methods
}

type ListCountryMoviesOKApplicationJSON

type ListCountryMoviesOKApplicationJSON []CountryMoviesList

func (*ListCountryMoviesOKApplicationJSON) Decode

Decode decodes ListCountryMoviesOKApplicationJSON from json.

func (ListCountryMoviesOKApplicationJSON) Encode

Encode encodes ListCountryMoviesOKApplicationJSON as json.

func (ListCountryMoviesOKApplicationJSON) Validate

type ListCountryMoviesParams

type ListCountryMoviesParams struct {
	// ID of the Country.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListCountryMoviesRes

type ListCountryMoviesRes interface {
	// contains filtered or unexported methods
}

type ListCountryOKApplicationJSON

type ListCountryOKApplicationJSON []CountryList

func (*ListCountryOKApplicationJSON) Decode

Decode decodes ListCountryOKApplicationJSON from json.

func (ListCountryOKApplicationJSON) Encode

Encode encodes ListCountryOKApplicationJSON as json.

func (ListCountryOKApplicationJSON) Validate

func (s ListCountryOKApplicationJSON) Validate() error

type ListCountryParams

type ListCountryParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListCountryRes

type ListCountryRes interface {
	// contains filtered or unexported methods
}

type ListFileOKApplicationJSON

type ListFileOKApplicationJSON []FileList

func (*ListFileOKApplicationJSON) Decode

func (s *ListFileOKApplicationJSON) Decode(d *jx.Decoder) error

Decode decodes ListFileOKApplicationJSON from json.

func (ListFileOKApplicationJSON) Encode

func (s ListFileOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListFileOKApplicationJSON as json.

func (ListFileOKApplicationJSON) Validate

func (s ListFileOKApplicationJSON) Validate() error

type ListFileParams

type ListFileParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListFileRes

type ListFileRes interface {
	// contains filtered or unexported methods
}

type ListMovieCastOKApplicationJSON

type ListMovieCastOKApplicationJSON []MovieCastList

func (*ListMovieCastOKApplicationJSON) Decode

Decode decodes ListMovieCastOKApplicationJSON from json.

func (ListMovieCastOKApplicationJSON) Encode

Encode encodes ListMovieCastOKApplicationJSON as json.

func (ListMovieCastOKApplicationJSON) Validate

type ListMovieCastParams

type ListMovieCastParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieCastRes

type ListMovieCastRes interface {
	// contains filtered or unexported methods
}

type ListMovieCountriesOKApplicationJSON

type ListMovieCountriesOKApplicationJSON []MovieCountriesList

func (*ListMovieCountriesOKApplicationJSON) Decode

Decode decodes ListMovieCountriesOKApplicationJSON from json.

func (ListMovieCountriesOKApplicationJSON) Encode

Encode encodes ListMovieCountriesOKApplicationJSON as json.

func (ListMovieCountriesOKApplicationJSON) Validate

type ListMovieCountriesParams

type ListMovieCountriesParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieCountriesRes

type ListMovieCountriesRes interface {
	// contains filtered or unexported methods
}

type ListMovieDirectorsOKApplicationJSON

type ListMovieDirectorsOKApplicationJSON []MovieDirectorsList

func (*ListMovieDirectorsOKApplicationJSON) Decode

Decode decodes ListMovieDirectorsOKApplicationJSON from json.

func (ListMovieDirectorsOKApplicationJSON) Encode

Encode encodes ListMovieDirectorsOKApplicationJSON as json.

func (ListMovieDirectorsOKApplicationJSON) Validate

type ListMovieDirectorsParams

type ListMovieDirectorsParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieDirectorsRes

type ListMovieDirectorsRes interface {
	// contains filtered or unexported methods
}

type ListMovieFanartOKApplicationJSON

type ListMovieFanartOKApplicationJSON []MovieFanartList

func (*ListMovieFanartOKApplicationJSON) Decode

Decode decodes ListMovieFanartOKApplicationJSON from json.

func (ListMovieFanartOKApplicationJSON) Encode

Encode encodes ListMovieFanartOKApplicationJSON as json.

func (ListMovieFanartOKApplicationJSON) Validate

type ListMovieFanartParams

type ListMovieFanartParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieFanartRes

type ListMovieFanartRes interface {
	// contains filtered or unexported methods
}

type ListMovieGenreMoviesOKApplicationJSON

type ListMovieGenreMoviesOKApplicationJSON []MovieGenreMoviesList

func (*ListMovieGenreMoviesOKApplicationJSON) Decode

Decode decodes ListMovieGenreMoviesOKApplicationJSON from json.

func (ListMovieGenreMoviesOKApplicationJSON) Encode

Encode encodes ListMovieGenreMoviesOKApplicationJSON as json.

func (ListMovieGenreMoviesOKApplicationJSON) Validate

type ListMovieGenreMoviesParams

type ListMovieGenreMoviesParams struct {
	// ID of the MovieGenre.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieGenreMoviesRes

type ListMovieGenreMoviesRes interface {
	// contains filtered or unexported methods
}

type ListMovieGenreOKApplicationJSON

type ListMovieGenreOKApplicationJSON []MovieGenreList

func (*ListMovieGenreOKApplicationJSON) Decode

Decode decodes ListMovieGenreOKApplicationJSON from json.

func (ListMovieGenreOKApplicationJSON) Encode

Encode encodes ListMovieGenreOKApplicationJSON as json.

func (ListMovieGenreOKApplicationJSON) Validate

type ListMovieGenreParams

type ListMovieGenreParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieGenreRes

type ListMovieGenreRes interface {
	// contains filtered or unexported methods
}

type ListMovieGenresOKApplicationJSON

type ListMovieGenresOKApplicationJSON []MovieGenresList

func (*ListMovieGenresOKApplicationJSON) Decode

Decode decodes ListMovieGenresOKApplicationJSON from json.

func (ListMovieGenresOKApplicationJSON) Encode

Encode encodes ListMovieGenresOKApplicationJSON as json.

func (ListMovieGenresOKApplicationJSON) Validate

type ListMovieGenresParams

type ListMovieGenresParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieGenresRes

type ListMovieGenresRes interface {
	// contains filtered or unexported methods
}

type ListMovieOKApplicationJSON

type ListMovieOKApplicationJSON []MovieList

func (*ListMovieOKApplicationJSON) Decode

Decode decodes ListMovieOKApplicationJSON from json.

func (ListMovieOKApplicationJSON) Encode

func (s ListMovieOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListMovieOKApplicationJSON as json.

func (ListMovieOKApplicationJSON) Validate

func (s ListMovieOKApplicationJSON) Validate() error

type ListMovieParams

type ListMovieParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieRatingsOKApplicationJSON

type ListMovieRatingsOKApplicationJSON []MovieRatingsList

func (*ListMovieRatingsOKApplicationJSON) Decode

Decode decodes ListMovieRatingsOKApplicationJSON from json.

func (ListMovieRatingsOKApplicationJSON) Encode

Encode encodes ListMovieRatingsOKApplicationJSON as json.

func (ListMovieRatingsOKApplicationJSON) Validate

type ListMovieRatingsParams

type ListMovieRatingsParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieRatingsRes

type ListMovieRatingsRes interface {
	// contains filtered or unexported methods
}

type ListMovieRes

type ListMovieRes interface {
	// contains filtered or unexported methods
}

type ListMovieWritersOKApplicationJSON

type ListMovieWritersOKApplicationJSON []MovieWritersList

func (*ListMovieWritersOKApplicationJSON) Decode

Decode decodes ListMovieWritersOKApplicationJSON from json.

func (ListMovieWritersOKApplicationJSON) Encode

Encode encodes ListMovieWritersOKApplicationJSON as json.

func (ListMovieWritersOKApplicationJSON) Validate

type ListMovieWritersParams

type ListMovieWritersParams struct {
	// ID of the Movie.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListMovieWritersRes

type ListMovieWritersRes interface {
	// contains filtered or unexported methods
}

type ListPictureOKApplicationJSON

type ListPictureOKApplicationJSON []PictureList

func (*ListPictureOKApplicationJSON) Decode

Decode decodes ListPictureOKApplicationJSON from json.

func (ListPictureOKApplicationJSON) Encode

Encode encodes ListPictureOKApplicationJSON as json.

func (ListPictureOKApplicationJSON) Validate

func (s ListPictureOKApplicationJSON) Validate() error

type ListPictureParams

type ListPictureParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListPictureRes

type ListPictureRes interface {
	// contains filtered or unexported methods
}

type ListRatingOKApplicationJSON

type ListRatingOKApplicationJSON []RatingList

func (*ListRatingOKApplicationJSON) Decode

Decode decodes ListRatingOKApplicationJSON from json.

func (ListRatingOKApplicationJSON) Encode

func (s ListRatingOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListRatingOKApplicationJSON as json.

func (ListRatingOKApplicationJSON) Validate

func (s ListRatingOKApplicationJSON) Validate() error

type ListRatingParams

type ListRatingParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

type ListRatingRes

type ListRatingRes interface {
	// contains filtered or unexported methods
}

type MovieCastList

type MovieCastList struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/Movie_CastList

func NewMovieCastList

func NewMovieCastList(e *ent.Artist) *MovieCastList

func NewMovieCastLists

func NewMovieCastLists(es []*ent.Artist) []MovieCastList

func (*MovieCastList) Decode

func (s *MovieCastList) Decode(d *jx.Decoder) error

Decode decodes MovieCastList from json.

func (*MovieCastList) Elem

func (a *MovieCastList) Elem() MovieCastList

func (MovieCastList) Encode

func (s MovieCastList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieCountriesList

type MovieCountriesList struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
	Code string "json:\"code\""
}

Ref: #/components/schemas/Movie_CountriesList

func NewMovieCountriesList

func NewMovieCountriesList(e *ent.Country) *MovieCountriesList

func NewMovieCountriesLists

func NewMovieCountriesLists(es []*ent.Country) []MovieCountriesList

func (*MovieCountriesList) Decode

func (s *MovieCountriesList) Decode(d *jx.Decoder) error

Decode decodes MovieCountriesList from json.

func (*MovieCountriesList) Elem

func (MovieCountriesList) Encode

func (s MovieCountriesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieCreate

type MovieCreate struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/MovieCreate

func NewMovieCreate

func NewMovieCreate(e *ent.Movie) *MovieCreate

func NewMovieCreates

func NewMovieCreates(es []*ent.Movie) []MovieCreate

func (*MovieCreate) Decode

func (s *MovieCreate) Decode(d *jx.Decoder) error

Decode decodes MovieCreate from json.

func (*MovieCreate) Elem

func (m *MovieCreate) Elem() MovieCreate

func (MovieCreate) Encode

func (s MovieCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieDirectorsList

type MovieDirectorsList struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/Movie_DirectorsList

func NewMovieDirectorsList

func NewMovieDirectorsList(e *ent.Artist) *MovieDirectorsList

func NewMovieDirectorsLists

func NewMovieDirectorsLists(es []*ent.Artist) []MovieDirectorsList

func (*MovieDirectorsList) Decode

func (s *MovieDirectorsList) Decode(d *jx.Decoder) error

Decode decodes MovieDirectorsList from json.

func (*MovieDirectorsList) Elem

func (MovieDirectorsList) Encode

func (s MovieDirectorsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieFanartList

type MovieFanartList struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/Movie_FanartList

func NewMovieFanartList

func NewMovieFanartList(e *ent.Picture) *MovieFanartList

func NewMovieFanartLists

func NewMovieFanartLists(es []*ent.Picture) []MovieFanartList

func (*MovieFanartList) Decode

func (s *MovieFanartList) Decode(d *jx.Decoder) error

Decode decodes MovieFanartList from json.

func (*MovieFanartList) Elem

func (pi *MovieFanartList) Elem() MovieFanartList

func (MovieFanartList) Encode

func (s MovieFanartList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieFileRead

type MovieFileRead struct {
	ID                   int               "json:\"id\""
	Name                 string            "json:\"name\""
	Path                 string            "json:\"path\""
	Type                 MovieFileReadType "json:\"type\""
	ExternalID           OptString         "json:\"external_id\""
	ExternalInfoProvider OptString         "json:\"external_info_provider\""
	Results              OptString         "json:\"results\""
	Synced               bool              "json:\"synced\""
}

Ref: #/components/schemas/Movie_FileRead

func NewMovieFileRead

func NewMovieFileRead(e *ent.File) *MovieFileRead

func NewMovieFileReads

func NewMovieFileReads(es []*ent.File) []MovieFileRead

func (*MovieFileRead) Decode

func (s *MovieFileRead) Decode(d *jx.Decoder) error

Decode decodes MovieFileRead from json.

func (*MovieFileRead) Elem

func (f *MovieFileRead) Elem() MovieFileRead

func (MovieFileRead) Encode

func (s MovieFileRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (MovieFileRead) Validate

func (s MovieFileRead) Validate() error

type MovieFileReadType

type MovieFileReadType string
const (
	MovieFileReadTypeAudio MovieFileReadType = "audio"
	MovieFileReadTypeVideo MovieFileReadType = "video"
	MovieFileReadTypeImage MovieFileReadType = "image"
)

func (*MovieFileReadType) Decode

func (s *MovieFileReadType) Decode(d *jx.Decoder) error

Decode decodes MovieFileReadType from json.

func (MovieFileReadType) Encode

func (s MovieFileReadType) Encode(e *jx.Encoder)

Encode encodes MovieFileReadType as json.

func (MovieFileReadType) Validate

func (s MovieFileReadType) Validate() error

type MovieGenreCreate

type MovieGenreCreate struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
}

Ref: #/components/schemas/MovieGenreCreate

func NewMovieGenreCreate

func NewMovieGenreCreate(e *ent.MovieGenre) *MovieGenreCreate

func NewMovieGenreCreates

func NewMovieGenreCreates(es []*ent.MovieGenre) []MovieGenreCreate

func (*MovieGenreCreate) Decode

func (s *MovieGenreCreate) Decode(d *jx.Decoder) error

Decode decodes MovieGenreCreate from json.

func (*MovieGenreCreate) Elem

func (MovieGenreCreate) Encode

func (s MovieGenreCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieGenreList

type MovieGenreList struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
}

Ref: #/components/schemas/MovieGenreList

func NewMovieGenreList

func NewMovieGenreList(e *ent.MovieGenre) *MovieGenreList

func NewMovieGenreLists

func NewMovieGenreLists(es []*ent.MovieGenre) []MovieGenreList

func (*MovieGenreList) Decode

func (s *MovieGenreList) Decode(d *jx.Decoder) error

Decode decodes MovieGenreList from json.

func (*MovieGenreList) Elem

func (mg *MovieGenreList) Elem() MovieGenreList

func (MovieGenreList) Encode

func (s MovieGenreList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieGenreMoviesList

type MovieGenreMoviesList struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/MovieGenre_MoviesList

func NewMovieGenreMoviesList

func NewMovieGenreMoviesList(e *ent.Movie) *MovieGenreMoviesList

func NewMovieGenreMoviesLists

func NewMovieGenreMoviesLists(es []*ent.Movie) []MovieGenreMoviesList

func (*MovieGenreMoviesList) Decode

func (s *MovieGenreMoviesList) Decode(d *jx.Decoder) error

Decode decodes MovieGenreMoviesList from json.

func (*MovieGenreMoviesList) Elem

func (MovieGenreMoviesList) Encode

func (s MovieGenreMoviesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieGenreRead

type MovieGenreRead struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
}

Ref: #/components/schemas/MovieGenreRead

func NewMovieGenreRead

func NewMovieGenreRead(e *ent.MovieGenre) *MovieGenreRead

func NewMovieGenreReads

func NewMovieGenreReads(es []*ent.MovieGenre) []MovieGenreRead

func (*MovieGenreRead) Decode

func (s *MovieGenreRead) Decode(d *jx.Decoder) error

Decode decodes MovieGenreRead from json.

func (*MovieGenreRead) Elem

func (mg *MovieGenreRead) Elem() MovieGenreRead

func (MovieGenreRead) Encode

func (s MovieGenreRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieGenreUpdate

type MovieGenreUpdate struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
}

Ref: #/components/schemas/MovieGenreUpdate

func NewMovieGenreUpdate

func NewMovieGenreUpdate(e *ent.MovieGenre) *MovieGenreUpdate

func NewMovieGenreUpdates

func NewMovieGenreUpdates(es []*ent.MovieGenre) []MovieGenreUpdate

func (*MovieGenreUpdate) Decode

func (s *MovieGenreUpdate) Decode(d *jx.Decoder) error

Decode decodes MovieGenreUpdate from json.

func (*MovieGenreUpdate) Elem

func (MovieGenreUpdate) Encode

func (s MovieGenreUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieGenresList

type MovieGenresList struct {
	ID   int    "json:\"id\""
	Name string "json:\"name\""
}

Ref: #/components/schemas/Movie_GenresList

func NewMovieGenresList

func NewMovieGenresList(e *ent.MovieGenre) *MovieGenresList

func NewMovieGenresLists

func NewMovieGenresLists(es []*ent.MovieGenre) []MovieGenresList

func (*MovieGenresList) Decode

func (s *MovieGenresList) Decode(d *jx.Decoder) error

Decode decodes MovieGenresList from json.

func (*MovieGenresList) Elem

func (mg *MovieGenresList) Elem() MovieGenresList

func (MovieGenresList) Encode

func (s MovieGenresList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieList

type MovieList struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/MovieList

func NewMovieList

func NewMovieList(e *ent.Movie) *MovieList

func NewMovieLists

func NewMovieLists(es []*ent.Movie) []MovieList

func (*MovieList) Decode

func (s *MovieList) Decode(d *jx.Decoder) error

Decode decodes MovieList from json.

func (*MovieList) Elem

func (m *MovieList) Elem() MovieList

func (MovieList) Encode

func (s MovieList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MoviePosterRead

type MoviePosterRead struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/Movie_PosterRead

func NewMoviePosterRead

func NewMoviePosterRead(e *ent.Picture) *MoviePosterRead

func NewMoviePosterReads

func NewMoviePosterReads(es []*ent.Picture) []MoviePosterRead

func (*MoviePosterRead) Decode

func (s *MoviePosterRead) Decode(d *jx.Decoder) error

Decode decodes MoviePosterRead from json.

func (*MoviePosterRead) Elem

func (pi *MoviePosterRead) Elem() MoviePosterRead

func (MoviePosterRead) Encode

func (s MoviePosterRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieRatingsList

type MovieRatingsList struct {
	ID               int    "json:\"id\""
	Origin           string "json:\"origin\""
	OriginalRating   string "json:\"original_rating\""
	NormalizedRating int    "json:\"normalized_rating\""
}

Ref: #/components/schemas/Movie_RatingsList

func NewMovieRatingsList

func NewMovieRatingsList(e *ent.Rating) *MovieRatingsList

func NewMovieRatingsLists

func NewMovieRatingsLists(es []*ent.Rating) []MovieRatingsList

func (*MovieRatingsList) Decode

func (s *MovieRatingsList) Decode(d *jx.Decoder) error

Decode decodes MovieRatingsList from json.

func (*MovieRatingsList) Elem

func (MovieRatingsList) Encode

func (s MovieRatingsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieRead

type MovieRead struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/MovieRead

func NewMovieRead

func NewMovieRead(e *ent.Movie) *MovieRead

func NewMovieReads

func NewMovieReads(es []*ent.Movie) []MovieRead

func (*MovieRead) Decode

func (s *MovieRead) Decode(d *jx.Decoder) error

Decode decodes MovieRead from json.

func (*MovieRead) Elem

func (m *MovieRead) Elem() MovieRead

func (MovieRead) Encode

func (s MovieRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieUpdate

type MovieUpdate struct {
	ID            int         "json:\"id\""
	Title         string      "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       bool        "json:\"watched\""
}

Ref: #/components/schemas/MovieUpdate

func NewMovieUpdate

func NewMovieUpdate(e *ent.Movie) *MovieUpdate

func NewMovieUpdates

func NewMovieUpdates(es []*ent.Movie) []MovieUpdate

func (*MovieUpdate) Decode

func (s *MovieUpdate) Decode(d *jx.Decoder) error

Decode decodes MovieUpdate from json.

func (*MovieUpdate) Elem

func (m *MovieUpdate) Elem() MovieUpdate

func (MovieUpdate) Encode

func (s MovieUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type MovieWritersList

type MovieWritersList struct {
	ID       int         "json:\"id\""
	Name     string      "json:\"name\""
	Birthday OptDateTime "json:\"birthday\""
}

Ref: #/components/schemas/Movie_WritersList

func NewMovieWritersList

func NewMovieWritersList(e *ent.Artist) *MovieWritersList

func NewMovieWritersLists

func NewMovieWritersLists(es []*ent.Artist) []MovieWritersList

func (*MovieWritersList) Decode

func (s *MovieWritersList) Decode(d *jx.Decoder) error

Decode decodes MovieWritersList from json.

func (*MovieWritersList) Elem

func (MovieWritersList) Encode

func (s MovieWritersList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type OgentHandler

type OgentHandler struct {
	// contains filtered or unexported fields
}

OgentHandler implements the ogen generated Handler interface and uses Ent as data layer.

func NewOgentHandler

func NewOgentHandler(c *ent.Client) *OgentHandler

NewOgentHandler returns a new OgentHandler.

func (*OgentHandler) CreateArtist

func (h *OgentHandler) CreateArtist(ctx context.Context, req CreateArtistReq) (CreateArtistRes, error)

CreateArtist handles POST /artists requests.

func (*OgentHandler) CreateCountry

func (h *OgentHandler) CreateCountry(ctx context.Context, req CreateCountryReq) (CreateCountryRes, error)

CreateCountry handles POST /countries requests.

func (*OgentHandler) CreateFile

func (h *OgentHandler) CreateFile(ctx context.Context, req CreateFileReq) (CreateFileRes, error)

CreateFile handles POST /files requests.

func (*OgentHandler) CreateMovie

func (h *OgentHandler) CreateMovie(ctx context.Context, req CreateMovieReq) (CreateMovieRes, error)

CreateMovie handles POST /movies requests.

func (*OgentHandler) CreateMovieGenre

func (h *OgentHandler) CreateMovieGenre(ctx context.Context, req CreateMovieGenreReq) (CreateMovieGenreRes, error)

CreateMovieGenre handles POST /movie-genres requests.

func (*OgentHandler) CreatePicture

func (h *OgentHandler) CreatePicture(ctx context.Context, req CreatePictureReq) (CreatePictureRes, error)

CreatePicture handles POST /pictures requests.

func (*OgentHandler) CreateRating

func (h *OgentHandler) CreateRating(ctx context.Context, req CreateRatingReq) (CreateRatingRes, error)

CreateRating handles POST /ratings requests.

func (*OgentHandler) DeleteArtist

func (h *OgentHandler) DeleteArtist(ctx context.Context, params DeleteArtistParams) (DeleteArtistRes, error)

DeleteArtist handles DELETE /artists/{id} requests.

func (*OgentHandler) DeleteCountry

func (h *OgentHandler) DeleteCountry(ctx context.Context, params DeleteCountryParams) (DeleteCountryRes, error)

DeleteCountry handles DELETE /countries/{id} requests.

func (*OgentHandler) DeleteFile

func (h *OgentHandler) DeleteFile(ctx context.Context, params DeleteFileParams) (DeleteFileRes, error)

DeleteFile handles DELETE /files/{id} requests.

func (*OgentHandler) DeleteMovie

func (h *OgentHandler) DeleteMovie(ctx context.Context, params DeleteMovieParams) (DeleteMovieRes, error)

DeleteMovie handles DELETE /movies/{id} requests.

func (*OgentHandler) DeleteMovieGenre

func (h *OgentHandler) DeleteMovieGenre(ctx context.Context, params DeleteMovieGenreParams) (DeleteMovieGenreRes, error)

DeleteMovieGenre handles DELETE /movie-genres/{id} requests.

func (*OgentHandler) DeletePicture

func (h *OgentHandler) DeletePicture(ctx context.Context, params DeletePictureParams) (DeletePictureRes, error)

DeletePicture handles DELETE /pictures/{id} requests.

func (*OgentHandler) DeleteRating

func (h *OgentHandler) DeleteRating(ctx context.Context, params DeleteRatingParams) (DeleteRatingRes, error)

DeleteRating handles DELETE /ratings/{id} requests.

func (*OgentHandler) ListArtist

func (h *OgentHandler) ListArtist(ctx context.Context, params ListArtistParams) (ListArtistRes, error)

ListArtist handles GET /artists requests.

func (*OgentHandler) ListArtistActed

func (h *OgentHandler) ListArtistActed(ctx context.Context, params ListArtistActedParams) (ListArtistActedRes, error)

ListArtistActed handles GET /artists/{id}/acted requests.

func (*OgentHandler) ListArtistCountries

func (h *OgentHandler) ListArtistCountries(ctx context.Context, params ListArtistCountriesParams) (ListArtistCountriesRes, error)

ListArtistCountries handles GET /artists/{id}/countries requests.

func (*OgentHandler) ListArtistDirected

func (h *OgentHandler) ListArtistDirected(ctx context.Context, params ListArtistDirectedParams) (ListArtistDirectedRes, error)

ListArtistDirected handles GET /artists/{id}/directed requests.

func (*OgentHandler) ListArtistPictures

func (h *OgentHandler) ListArtistPictures(ctx context.Context, params ListArtistPicturesParams) (ListArtistPicturesRes, error)

ListArtistPictures handles GET /artists/{id}/pictures requests.

func (*OgentHandler) ListArtistWrote

func (h *OgentHandler) ListArtistWrote(ctx context.Context, params ListArtistWroteParams) (ListArtistWroteRes, error)

ListArtistWrote handles GET /artists/{id}/wrote requests.

func (*OgentHandler) ListCountry

func (h *OgentHandler) ListCountry(ctx context.Context, params ListCountryParams) (ListCountryRes, error)

ListCountry handles GET /countries requests.

func (*OgentHandler) ListCountryArtists

func (h *OgentHandler) ListCountryArtists(ctx context.Context, params ListCountryArtistsParams) (ListCountryArtistsRes, error)

ListCountryArtists handles GET /countries/{id}/artists requests.

func (*OgentHandler) ListCountryMovies

func (h *OgentHandler) ListCountryMovies(ctx context.Context, params ListCountryMoviesParams) (ListCountryMoviesRes, error)

ListCountryMovies handles GET /countries/{id}/movies requests.

func (*OgentHandler) ListFile

func (h *OgentHandler) ListFile(ctx context.Context, params ListFileParams) (ListFileRes, error)

ListFile handles GET /files requests.

func (*OgentHandler) ListMovie

func (h *OgentHandler) ListMovie(ctx context.Context, params ListMovieParams) (ListMovieRes, error)

ListMovie handles GET /movies requests.

func (*OgentHandler) ListMovieCast

func (h *OgentHandler) ListMovieCast(ctx context.Context, params ListMovieCastParams) (ListMovieCastRes, error)

ListMovieCast handles GET /movies/{id}/cast requests.

func (*OgentHandler) ListMovieCountries

func (h *OgentHandler) ListMovieCountries(ctx context.Context, params ListMovieCountriesParams) (ListMovieCountriesRes, error)

ListMovieCountries handles GET /movies/{id}/countries requests.

func (*OgentHandler) ListMovieDirectors

func (h *OgentHandler) ListMovieDirectors(ctx context.Context, params ListMovieDirectorsParams) (ListMovieDirectorsRes, error)

ListMovieDirectors handles GET /movies/{id}/directors requests.

func (*OgentHandler) ListMovieFanart

func (h *OgentHandler) ListMovieFanart(ctx context.Context, params ListMovieFanartParams) (ListMovieFanartRes, error)

ListMovieFanart handles GET /movies/{id}/fanart requests.

func (*OgentHandler) ListMovieGenre

func (h *OgentHandler) ListMovieGenre(ctx context.Context, params ListMovieGenreParams) (ListMovieGenreRes, error)

ListMovieGenre handles GET /movie-genres requests.

func (*OgentHandler) ListMovieGenreMovies

func (h *OgentHandler) ListMovieGenreMovies(ctx context.Context, params ListMovieGenreMoviesParams) (ListMovieGenreMoviesRes, error)

ListMovieGenreMovies handles GET /movie-genres/{id}/movies requests.

func (*OgentHandler) ListMovieGenres

func (h *OgentHandler) ListMovieGenres(ctx context.Context, params ListMovieGenresParams) (ListMovieGenresRes, error)

ListMovieGenres handles GET /movies/{id}/genres requests.

func (*OgentHandler) ListMovieRatings

func (h *OgentHandler) ListMovieRatings(ctx context.Context, params ListMovieRatingsParams) (ListMovieRatingsRes, error)

ListMovieRatings handles GET /movies/{id}/ratings requests.

func (*OgentHandler) ListMovieWriters

func (h *OgentHandler) ListMovieWriters(ctx context.Context, params ListMovieWritersParams) (ListMovieWritersRes, error)

ListMovieWriters handles GET /movies/{id}/writers requests.

func (*OgentHandler) ListPicture

func (h *OgentHandler) ListPicture(ctx context.Context, params ListPictureParams) (ListPictureRes, error)

ListPicture handles GET /pictures requests.

func (*OgentHandler) ListRating

func (h *OgentHandler) ListRating(ctx context.Context, params ListRatingParams) (ListRatingRes, error)

ListRating handles GET /ratings requests.

func (*OgentHandler) ReadArtist

func (h *OgentHandler) ReadArtist(ctx context.Context, params ReadArtistParams) (ReadArtistRes, error)

ReadArtist handles GET /artists/{id} requests.

func (*OgentHandler) ReadArtistProfilePicture

ReadArtistProfilePicture handles GET /artists/{id}/profile-picture requests.

func (*OgentHandler) ReadCountry

func (h *OgentHandler) ReadCountry(ctx context.Context, params ReadCountryParams) (ReadCountryRes, error)

ReadCountry handles GET /countries/{id} requests.

func (*OgentHandler) ReadFile

func (h *OgentHandler) ReadFile(ctx context.Context, params ReadFileParams) (ReadFileRes, error)

ReadFile handles GET /files/{id} requests.

func (*OgentHandler) ReadFileMovie

func (h *OgentHandler) ReadFileMovie(ctx context.Context, params ReadFileMovieParams) (ReadFileMovieRes, error)

ReadFileMovie handles GET /files/{id}/movie requests.

func (*OgentHandler) ReadMovie

func (h *OgentHandler) ReadMovie(ctx context.Context, params ReadMovieParams) (ReadMovieRes, error)

ReadMovie handles GET /movies/{id} requests.

func (*OgentHandler) ReadMovieFile

func (h *OgentHandler) ReadMovieFile(ctx context.Context, params ReadMovieFileParams) (ReadMovieFileRes, error)

ReadMovieFile handles GET /movies/{id}/file requests.

func (*OgentHandler) ReadMovieGenre

func (h *OgentHandler) ReadMovieGenre(ctx context.Context, params ReadMovieGenreParams) (ReadMovieGenreRes, error)

ReadMovieGenre handles GET /movie-genres/{id} requests.

func (*OgentHandler) ReadMoviePoster

func (h *OgentHandler) ReadMoviePoster(ctx context.Context, params ReadMoviePosterParams) (ReadMoviePosterRes, error)

ReadMoviePoster handles GET /movies/{id}/poster requests.

func (*OgentHandler) ReadPicture

func (h *OgentHandler) ReadPicture(ctx context.Context, params ReadPictureParams) (ReadPictureRes, error)

ReadPicture handles GET /pictures/{id} requests.

func (*OgentHandler) ReadRating

func (h *OgentHandler) ReadRating(ctx context.Context, params ReadRatingParams) (ReadRatingRes, error)

ReadRating handles GET /ratings/{id} requests.

func (*OgentHandler) UpdateArtist

UpdateArtist handles PATCH /artists/{id} requests.

func (*OgentHandler) UpdateCountry

UpdateCountry handles PATCH /countries/{id} requests.

func (*OgentHandler) UpdateFile

func (h *OgentHandler) UpdateFile(ctx context.Context, req UpdateFileReq, params UpdateFileParams) (UpdateFileRes, error)

UpdateFile handles PATCH /files/{id} requests.

func (*OgentHandler) UpdateMovie

func (h *OgentHandler) UpdateMovie(ctx context.Context, req UpdateMovieReq, params UpdateMovieParams) (UpdateMovieRes, error)

UpdateMovie handles PATCH /movies/{id} requests.

func (*OgentHandler) UpdateMovieGenre

UpdateMovieGenre handles PATCH /movie-genres/{id} requests.

func (*OgentHandler) UpdatePicture

UpdatePicture handles PATCH /pictures/{id} requests.

func (*OgentHandler) UpdateRating

UpdateRating handles PATCH /ratings/{id} requests.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

type OptUpdateFileReqType

type OptUpdateFileReqType struct {
	Value UpdateFileReqType
	Set   bool
}

OptUpdateFileReqType is optional UpdateFileReqType.

func NewOptUpdateFileReqType

func NewOptUpdateFileReqType(v UpdateFileReqType) OptUpdateFileReqType

NewOptUpdateFileReqType returns new OptUpdateFileReqType with value set to v.

func (*OptUpdateFileReqType) Decode

func (o *OptUpdateFileReqType) Decode(d *jx.Decoder) error

Decode decodes UpdateFileReqType from json.

func (OptUpdateFileReqType) Encode

func (o OptUpdateFileReqType) Encode(e *jx.Encoder)

Encode encodes UpdateFileReqType as json.

func (OptUpdateFileReqType) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateFileReqType) IsSet

func (o OptUpdateFileReqType) IsSet() bool

IsSet returns true if OptUpdateFileReqType was set.

func (OptUpdateFileReqType) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateFileReqType) Reset

func (o *OptUpdateFileReqType) Reset()

Reset unsets value.

func (*OptUpdateFileReqType) SetTo

SetTo sets value to v.

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithClient

func WithClient(client ht.Client) Option

WithClient specifies http client to use.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the metric.NewNoopMeterProvider is used.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) Option

WithNotFound specifies http handler to use.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PictureCreate

type PictureCreate struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/PictureCreate

func NewPictureCreate

func NewPictureCreate(e *ent.Picture) *PictureCreate

func NewPictureCreates

func NewPictureCreates(es []*ent.Picture) []PictureCreate

func (*PictureCreate) Decode

func (s *PictureCreate) Decode(d *jx.Decoder) error

Decode decodes PictureCreate from json.

func (*PictureCreate) Elem

func (pi *PictureCreate) Elem() PictureCreate

func (PictureCreate) Encode

func (s PictureCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type PictureList

type PictureList struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/PictureList

func NewPictureList

func NewPictureList(e *ent.Picture) *PictureList

func NewPictureLists

func NewPictureLists(es []*ent.Picture) []PictureList

func (*PictureList) Decode

func (s *PictureList) Decode(d *jx.Decoder) error

Decode decodes PictureList from json.

func (*PictureList) Elem

func (pi *PictureList) Elem() PictureList

func (PictureList) Encode

func (s PictureList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type PictureRead

type PictureRead struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/PictureRead

func NewPictureRead

func NewPictureRead(e *ent.Picture) *PictureRead

func NewPictureReads

func NewPictureReads(es []*ent.Picture) []PictureRead

func (*PictureRead) Decode

func (s *PictureRead) Decode(d *jx.Decoder) error

Decode decodes PictureRead from json.

func (*PictureRead) Elem

func (pi *PictureRead) Elem() PictureRead

func (PictureRead) Encode

func (s PictureRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type PictureUpdate

type PictureUpdate struct {
	ID       int       "json:\"id\""
	Name     OptString "json:\"name\""
	Filename string    "json:\"filename\""
	Path     string    "json:\"path\""
}

Ref: #/components/schemas/PictureUpdate

func NewPictureUpdate

func NewPictureUpdate(e *ent.Picture) *PictureUpdate

func NewPictureUpdates

func NewPictureUpdates(es []*ent.Picture) []PictureUpdate

func (*PictureUpdate) Decode

func (s *PictureUpdate) Decode(d *jx.Decoder) error

Decode decodes PictureUpdate from json.

func (*PictureUpdate) Elem

func (pi *PictureUpdate) Elem() PictureUpdate

func (PictureUpdate) Encode

func (s PictureUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type R400

type R400 struct {
	Code   int    "json:\"code\""
	Status string "json:\"status\""
	Errors jx.Raw "json:\"errors\""
}

func (*R400) Decode

func (s *R400) Decode(d *jx.Decoder) error

Decode decodes R400 from json.

func (R400) Encode

func (s R400) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type R404

type R404 struct {
	Code   int    "json:\"code\""
	Status string "json:\"status\""
	Errors jx.Raw "json:\"errors\""
}

func (*R404) Decode

func (s *R404) Decode(d *jx.Decoder) error

Decode decodes R404 from json.

func (R404) Encode

func (s R404) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type R409

type R409 struct {
	Code   int    "json:\"code\""
	Status string "json:\"status\""
	Errors jx.Raw "json:\"errors\""
}

func (*R409) Decode

func (s *R409) Decode(d *jx.Decoder) error

Decode decodes R409 from json.

func (R409) Encode

func (s R409) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type R500

type R500 struct {
	Code   int    "json:\"code\""
	Status string "json:\"status\""
	Errors jx.Raw "json:\"errors\""
}

func (*R500) Decode

func (s *R500) Decode(d *jx.Decoder) error

Decode decodes R500 from json.

func (R500) Encode

func (s R500) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type RatingCreate

type RatingCreate struct {
	ID               int    "json:\"id\""
	Origin           string "json:\"origin\""
	OriginalRating   string "json:\"original_rating\""
	NormalizedRating int    "json:\"normalized_rating\""
}

Ref: #/components/schemas/RatingCreate

func NewRatingCreate

func NewRatingCreate(e *ent.Rating) *RatingCreate

func NewRatingCreates

func NewRatingCreates(es []*ent.Rating) []RatingCreate

func (*RatingCreate) Decode

func (s *RatingCreate) Decode(d *jx.Decoder) error

Decode decodes RatingCreate from json.

func (*RatingCreate) Elem

func (r *RatingCreate) Elem() RatingCreate

func (RatingCreate) Encode

func (s RatingCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type RatingList

type RatingList struct {
	ID               int    "json:\"id\""
	Origin           string "json:\"origin\""
	OriginalRating   string "json:\"original_rating\""
	NormalizedRating int    "json:\"normalized_rating\""
}

Ref: #/components/schemas/RatingList

func NewRatingList

func NewRatingList(e *ent.Rating) *RatingList

func NewRatingLists

func NewRatingLists(es []*ent.Rating) []RatingList

func (*RatingList) Decode

func (s *RatingList) Decode(d *jx.Decoder) error

Decode decodes RatingList from json.

func (*RatingList) Elem

func (r *RatingList) Elem() RatingList

func (RatingList) Encode

func (s RatingList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type RatingRead

type RatingRead struct {
	ID               int    "json:\"id\""
	Origin           string "json:\"origin\""
	OriginalRating   string "json:\"original_rating\""
	NormalizedRating int    "json:\"normalized_rating\""
}

Ref: #/components/schemas/RatingRead

func NewRatingRead

func NewRatingRead(e *ent.Rating) *RatingRead

func NewRatingReads

func NewRatingReads(es []*ent.Rating) []RatingRead

func (*RatingRead) Decode

func (s *RatingRead) Decode(d *jx.Decoder) error

Decode decodes RatingRead from json.

func (*RatingRead) Elem

func (r *RatingRead) Elem() RatingRead

func (RatingRead) Encode

func (s RatingRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type RatingUpdate

type RatingUpdate struct {
	ID               int    "json:\"id\""
	Origin           string "json:\"origin\""
	OriginalRating   string "json:\"original_rating\""
	NormalizedRating int    "json:\"normalized_rating\""
}

Ref: #/components/schemas/RatingUpdate

func NewRatingUpdate

func NewRatingUpdate(e *ent.Rating) *RatingUpdate

func NewRatingUpdates

func NewRatingUpdates(es []*ent.Rating) []RatingUpdate

func (*RatingUpdate) Decode

func (s *RatingUpdate) Decode(d *jx.Decoder) error

Decode decodes RatingUpdate from json.

func (*RatingUpdate) Elem

func (r *RatingUpdate) Elem() RatingUpdate

func (RatingUpdate) Encode

func (s RatingUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type ReadArtistParams

type ReadArtistParams struct {
	// ID of the Artist.
	ID int
}

type ReadArtistProfilePictureParams

type ReadArtistProfilePictureParams struct {
	// ID of the Artist.
	ID int
}

type ReadArtistProfilePictureRes

type ReadArtistProfilePictureRes interface {
	// contains filtered or unexported methods
}

type ReadArtistRes

type ReadArtistRes interface {
	// contains filtered or unexported methods
}

type ReadCountryParams

type ReadCountryParams struct {
	// ID of the Country.
	ID int
}

type ReadCountryRes

type ReadCountryRes interface {
	// contains filtered or unexported methods
}

type ReadFileMovieParams

type ReadFileMovieParams struct {
	// ID of the File.
	ID int
}

type ReadFileMovieRes

type ReadFileMovieRes interface {
	// contains filtered or unexported methods
}

type ReadFileParams

type ReadFileParams struct {
	// ID of the File.
	ID int
}

type ReadFileRes

type ReadFileRes interface {
	// contains filtered or unexported methods
}

type ReadMovieFileParams

type ReadMovieFileParams struct {
	// ID of the Movie.
	ID int
}

type ReadMovieFileRes

type ReadMovieFileRes interface {
	// contains filtered or unexported methods
}

type ReadMovieGenreParams

type ReadMovieGenreParams struct {
	// ID of the MovieGenre.
	ID int
}

type ReadMovieGenreRes

type ReadMovieGenreRes interface {
	// contains filtered or unexported methods
}

type ReadMovieParams

type ReadMovieParams struct {
	// ID of the Movie.
	ID int
}

type ReadMoviePosterParams

type ReadMoviePosterParams struct {
	// ID of the Movie.
	ID int
}

type ReadMoviePosterRes

type ReadMoviePosterRes interface {
	// contains filtered or unexported methods
}

type ReadMovieRes

type ReadMovieRes interface {
	// contains filtered or unexported methods
}

type ReadPictureParams

type ReadPictureParams struct {
	// ID of the Picture.
	ID int
}

type ReadPictureRes

type ReadPictureRes interface {
	// contains filtered or unexported methods
}

type ReadRatingParams

type ReadRatingParams struct {
	// ID of the Rating.
	ID int
}

type ReadRatingRes

type ReadRatingRes interface {
	// contains filtered or unexported methods
}

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...Option) (*Server, error)

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (r Route, _ bool)

FindRoute finds Route for given method and path.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) CreateArtist

CreateArtist implements createArtist operation.

Creates a new Artist and persists it to storage.

POST /artists

func (UnimplementedHandler) CreateCountry

CreateCountry implements createCountry operation.

Creates a new Country and persists it to storage.

POST /countries

func (UnimplementedHandler) CreateFile

CreateFile implements createFile operation.

Creates a new File and persists it to storage.

POST /files

func (UnimplementedHandler) CreateMovie

CreateMovie implements createMovie operation.

Creates a new Movie and persists it to storage.

POST /movies

func (UnimplementedHandler) CreateMovieGenre

CreateMovieGenre implements createMovieGenre operation.

Creates a new MovieGenre and persists it to storage.

POST /movie-genres

func (UnimplementedHandler) CreatePicture

CreatePicture implements createPicture operation.

Creates a new Picture and persists it to storage.

POST /pictures

func (UnimplementedHandler) CreateRating

CreateRating implements createRating operation.

Creates a new Rating and persists it to storage.

POST /ratings

func (UnimplementedHandler) DeleteArtist

DeleteArtist implements deleteArtist operation.

Deletes the Artist with the requested ID.

DELETE /artists/{id}

func (UnimplementedHandler) DeleteCountry

DeleteCountry implements deleteCountry operation.

Deletes the Country with the requested ID.

DELETE /countries/{id}

func (UnimplementedHandler) DeleteFile

DeleteFile implements deleteFile operation.

Deletes the File with the requested ID.

DELETE /files/{id}

func (UnimplementedHandler) DeleteMovie

DeleteMovie implements deleteMovie operation.

Deletes the Movie with the requested ID.

DELETE /movies/{id}

func (UnimplementedHandler) DeleteMovieGenre

DeleteMovieGenre implements deleteMovieGenre operation.

Deletes the MovieGenre with the requested ID.

DELETE /movie-genres/{id}

func (UnimplementedHandler) DeletePicture

DeletePicture implements deletePicture operation.

Deletes the Picture with the requested ID.

DELETE /pictures/{id}

func (UnimplementedHandler) DeleteRating

DeleteRating implements deleteRating operation.

Deletes the Rating with the requested ID.

DELETE /ratings/{id}

func (UnimplementedHandler) ListArtist

ListArtist implements listArtist operation.

List Artists.

GET /artists

func (UnimplementedHandler) ListArtistActed

ListArtistActed implements listArtistActed operation.

List attached Acteds.

GET /artists/{id}/acted

func (UnimplementedHandler) ListArtistCountries

ListArtistCountries implements listArtistCountries operation.

List attached Countries.

GET /artists/{id}/countries

func (UnimplementedHandler) ListArtistDirected

ListArtistDirected implements listArtistDirected operation.

List attached Directeds.

GET /artists/{id}/directed

func (UnimplementedHandler) ListArtistPictures

ListArtistPictures implements listArtistPictures operation.

List attached Pictures.

GET /artists/{id}/pictures

func (UnimplementedHandler) ListArtistWrote

ListArtistWrote implements listArtistWrote operation.

List attached Wrotes.

GET /artists/{id}/wrote

func (UnimplementedHandler) ListCountry

ListCountry implements listCountry operation.

List Countries.

GET /countries

func (UnimplementedHandler) ListCountryArtists

ListCountryArtists implements listCountryArtists operation.

List attached Artists.

GET /countries/{id}/artists

func (UnimplementedHandler) ListCountryMovies

ListCountryMovies implements listCountryMovies operation.

List attached Movies.

GET /countries/{id}/movies

func (UnimplementedHandler) ListFile

func (UnimplementedHandler) ListFile(ctx context.Context, params ListFileParams) (r ListFileRes, _ error)

ListFile implements listFile operation.

List Files.

GET /files

func (UnimplementedHandler) ListMovie

func (UnimplementedHandler) ListMovie(ctx context.Context, params ListMovieParams) (r ListMovieRes, _ error)

ListMovie implements listMovie operation.

List Movies.

GET /movies

func (UnimplementedHandler) ListMovieCast

ListMovieCast implements listMovieCast operation.

List attached Casts.

GET /movies/{id}/cast

func (UnimplementedHandler) ListMovieCountries

ListMovieCountries implements listMovieCountries operation.

List attached Countries.

GET /movies/{id}/countries

func (UnimplementedHandler) ListMovieDirectors

ListMovieDirectors implements listMovieDirectors operation.

List attached Directors.

GET /movies/{id}/directors

func (UnimplementedHandler) ListMovieFanart

ListMovieFanart implements listMovieFanart operation.

List attached Fanarts.

GET /movies/{id}/fanart

func (UnimplementedHandler) ListMovieGenre

ListMovieGenre implements listMovieGenre operation.

List MovieGenres.

GET /movie-genres

func (UnimplementedHandler) ListMovieGenreMovies

ListMovieGenreMovies implements listMovieGenreMovies operation.

List attached Movies.

GET /movie-genres/{id}/movies

func (UnimplementedHandler) ListMovieGenres

ListMovieGenres implements listMovieGenres operation.

List attached Genres.

GET /movies/{id}/genres

func (UnimplementedHandler) ListMovieRatings

ListMovieRatings implements listMovieRatings operation.

List attached Ratings.

GET /movies/{id}/ratings

func (UnimplementedHandler) ListMovieWriters

ListMovieWriters implements listMovieWriters operation.

List attached Writers.

GET /movies/{id}/writers

func (UnimplementedHandler) ListPicture

ListPicture implements listPicture operation.

List Pictures.

GET /pictures

func (UnimplementedHandler) ListRating

ListRating implements listRating operation.

List Ratings.

GET /ratings

func (UnimplementedHandler) ReadArtist

ReadArtist implements readArtist operation.

Finds the Artist with the requested ID and returns it.

GET /artists/{id}

func (UnimplementedHandler) ReadArtistProfilePicture

ReadArtistProfilePicture implements readArtistProfilePicture operation.

Find the attached Picture of the Artist with the given ID.

GET /artists/{id}/profile-picture

func (UnimplementedHandler) ReadCountry

ReadCountry implements readCountry operation.

Finds the Country with the requested ID and returns it.

GET /countries/{id}

func (UnimplementedHandler) ReadFile

func (UnimplementedHandler) ReadFile(ctx context.Context, params ReadFileParams) (r ReadFileRes, _ error)

ReadFile implements readFile operation.

Finds the File with the requested ID and returns it.

GET /files/{id}

func (UnimplementedHandler) ReadFileMovie

ReadFileMovie implements readFileMovie operation.

Find the attached Movie of the File with the given ID.

GET /files/{id}/movie

func (UnimplementedHandler) ReadMovie

func (UnimplementedHandler) ReadMovie(ctx context.Context, params ReadMovieParams) (r ReadMovieRes, _ error)

ReadMovie implements readMovie operation.

Finds the Movie with the requested ID and returns it.

GET /movies/{id}

func (UnimplementedHandler) ReadMovieFile

ReadMovieFile implements readMovieFile operation.

Find the attached File of the Movie with the given ID.

GET /movies/{id}/file

func (UnimplementedHandler) ReadMovieGenre

ReadMovieGenre implements readMovieGenre operation.

Finds the MovieGenre with the requested ID and returns it.

GET /movie-genres/{id}

func (UnimplementedHandler) ReadMoviePoster

ReadMoviePoster implements readMoviePoster operation.

Find the attached Picture of the Movie with the given ID.

GET /movies/{id}/poster

func (UnimplementedHandler) ReadPicture

ReadPicture implements readPicture operation.

Finds the Picture with the requested ID and returns it.

GET /pictures/{id}

func (UnimplementedHandler) ReadRating

ReadRating implements readRating operation.

Finds the Rating with the requested ID and returns it.

GET /ratings/{id}

func (UnimplementedHandler) UpdateArtist

UpdateArtist implements updateArtist operation.

Updates a Artist and persists changes to storage.

PATCH /artists/{id}

func (UnimplementedHandler) UpdateCountry

UpdateCountry implements updateCountry operation.

Updates a Country and persists changes to storage.

PATCH /countries/{id}

func (UnimplementedHandler) UpdateFile

UpdateFile implements updateFile operation.

Updates a File and persists changes to storage.

PATCH /files/{id}

func (UnimplementedHandler) UpdateMovie

UpdateMovie implements updateMovie operation.

Updates a Movie and persists changes to storage.

PATCH /movies/{id}

func (UnimplementedHandler) UpdateMovieGenre

UpdateMovieGenre implements updateMovieGenre operation.

Updates a MovieGenre and persists changes to storage.

PATCH /movie-genres/{id}

func (UnimplementedHandler) UpdatePicture

UpdatePicture implements updatePicture operation.

Updates a Picture and persists changes to storage.

PATCH /pictures/{id}

func (UnimplementedHandler) UpdateRating

UpdateRating implements updateRating operation.

Updates a Rating and persists changes to storage.

PATCH /ratings/{id}

type UpdateArtistParams

type UpdateArtistParams struct {
	// ID of the Artist.
	ID int
}

type UpdateArtistReq

type UpdateArtistReq struct {
	Name           OptString   "json:\"name\""
	Birthday       OptDateTime "json:\"birthday\""
	ProfilePicture OptInt      "json:\"profile_picture\""
	Pictures       []int       "json:\"pictures\""
	Directed       []int       "json:\"directed\""
	Acted          []int       "json:\"acted\""
	Wrote          []int       "json:\"wrote\""
	Countries      []int       "json:\"countries\""
}

func (*UpdateArtistReq) Decode

func (s *UpdateArtistReq) Decode(d *jx.Decoder) error

Decode decodes UpdateArtistReq from json.

func (UpdateArtistReq) Encode

func (s UpdateArtistReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type UpdateArtistRes

type UpdateArtistRes interface {
	// contains filtered or unexported methods
}

type UpdateCountryParams

type UpdateCountryParams struct {
	// ID of the Country.
	ID int
}

type UpdateCountryReq

type UpdateCountryReq struct {
	Name    OptString "json:\"name\""
	Code    OptString "json:\"code\""
	Movies  []int     "json:\"movies\""
	Artists []int     "json:\"artists\""
}

func (*UpdateCountryReq) Decode

func (s *UpdateCountryReq) Decode(d *jx.Decoder) error

Decode decodes UpdateCountryReq from json.

func (UpdateCountryReq) Encode

func (s UpdateCountryReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type UpdateCountryRes

type UpdateCountryRes interface {
	// contains filtered or unexported methods
}

type UpdateFileParams

type UpdateFileParams struct {
	// ID of the File.
	ID int
}

type UpdateFileReq

type UpdateFileReq struct {
	Name                 OptString            "json:\"name\""
	Path                 OptString            "json:\"path\""
	Type                 OptUpdateFileReqType "json:\"type\""
	ExternalID           OptString            "json:\"external_id\""
	ExternalInfoProvider OptString            "json:\"external_info_provider\""
	Results              OptString            "json:\"results\""
	Synced               OptBool              "json:\"synced\""
	Movie                OptInt               "json:\"movie\""
}

func (*UpdateFileReq) Decode

func (s *UpdateFileReq) Decode(d *jx.Decoder) error

Decode decodes UpdateFileReq from json.

func (UpdateFileReq) Encode

func (s UpdateFileReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (UpdateFileReq) Validate

func (s UpdateFileReq) Validate() error

type UpdateFileReqType

type UpdateFileReqType string
const (
	UpdateFileReqTypeAudio UpdateFileReqType = "audio"
	UpdateFileReqTypeVideo UpdateFileReqType = "video"
	UpdateFileReqTypeImage UpdateFileReqType = "image"
)

func (*UpdateFileReqType) Decode

func (s *UpdateFileReqType) Decode(d *jx.Decoder) error

Decode decodes UpdateFileReqType from json.

func (UpdateFileReqType) Encode

func (s UpdateFileReqType) Encode(e *jx.Encoder)

Encode encodes UpdateFileReqType as json.

func (UpdateFileReqType) Validate

func (s UpdateFileReqType) Validate() error

type UpdateFileRes

type UpdateFileRes interface {
	// contains filtered or unexported methods
}

type UpdateMovieGenreParams

type UpdateMovieGenreParams struct {
	// ID of the MovieGenre.
	ID int
}

type UpdateMovieGenreReq

type UpdateMovieGenreReq struct {
	Name   OptString "json:\"name\""
	Movies []int     "json:\"movies\""
}

func (*UpdateMovieGenreReq) Decode

func (s *UpdateMovieGenreReq) Decode(d *jx.Decoder) error

Decode decodes UpdateMovieGenreReq from json.

func (UpdateMovieGenreReq) Encode

func (s UpdateMovieGenreReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type UpdateMovieGenreRes

type UpdateMovieGenreRes interface {
	// contains filtered or unexported methods
}

type UpdateMovieParams

type UpdateMovieParams struct {
	// ID of the Movie.
	ID int
}

type UpdateMovieReq

type UpdateMovieReq struct {
	Title         OptString   "json:\"title\""
	OriginalTitle OptString   "json:\"original_title\""
	ReleaseDate   OptDateTime "json:\"release_date\""
	Plot          OptString   "json:\"plot\""
	Duration      OptInt      "json:\"duration\""
	Watched       OptBool     "json:\"watched\""
	File          OptInt      "json:\"file\""
	Ratings       []int       "json:\"ratings\""
	Poster        OptInt      "json:\"poster\""
	Fanart        []int       "json:\"fanart\""
	Cast          []int       "json:\"cast\""
	Directors     []int       "json:\"directors\""
	Writers       []int       "json:\"writers\""
	Genres        []int       "json:\"genres\""
	Countries     []int       "json:\"countries\""
}

func (*UpdateMovieReq) Decode

func (s *UpdateMovieReq) Decode(d *jx.Decoder) error

Decode decodes UpdateMovieReq from json.

func (UpdateMovieReq) Encode

func (s UpdateMovieReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type UpdateMovieRes

type UpdateMovieRes interface {
	// contains filtered or unexported methods
}

type UpdatePictureParams

type UpdatePictureParams struct {
	// ID of the Picture.
	ID int
}

type UpdatePictureReq

type UpdatePictureReq struct {
	Name     OptString "json:\"name\""
	Filename OptString "json:\"filename\""
	Path     OptString "json:\"path\""
}

func (*UpdatePictureReq) Decode

func (s *UpdatePictureReq) Decode(d *jx.Decoder) error

Decode decodes UpdatePictureReq from json.

func (UpdatePictureReq) Encode

func (s UpdatePictureReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type UpdatePictureRes

type UpdatePictureRes interface {
	// contains filtered or unexported methods
}

type UpdateRatingParams

type UpdateRatingParams struct {
	// ID of the Rating.
	ID int
}

type UpdateRatingReq

type UpdateRatingReq struct {
	Origin           OptString "json:\"origin\""
	OriginalRating   OptString "json:\"original_rating\""
	NormalizedRating OptInt    "json:\"normalized_rating\""
}

func (*UpdateRatingReq) Decode

func (s *UpdateRatingReq) Decode(d *jx.Decoder) error

Decode decodes UpdateRatingReq from json.

func (UpdateRatingReq) Encode

func (s UpdateRatingReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

type UpdateRatingRes

type UpdateRatingRes interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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