schema

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Movie

type Movie struct {
	ID               uint64   `json:"id"`
	Title            string   `json:"title"`
	OriginalLanguage string   `json:"original_language"`
	OriginalTitle    string   `json:"original_title"`
	ReleaseDate      string   `json:"release_date"`
	Overview         string   `json:"overview"`
	Genres           []uint64 `json:"genre_ids"`
	Video            bool     `json:"video,omitempty"`

	BackdropPath string `json:"backdrop_path"`
	PosterPath   string `json:"poster_path"`

	Popularity  float32 `json:"popularity,omitempty"`
	VoteAverage float32 `json:"vote_average,omitempty"`
	VoteCount   uint64  `json:"vote_count,omitempty"`

	Adult    bool `json:"adult,omitempty"`
	SoftCore bool `json:"softcore,omitempty"`
}

type MovieSearchRequest

type MovieSearchRequest struct {
	Term               string  `json:"query" arg:"" name:"query" help:"Search term."`
	IncludeAdult       *bool   `json:"include_adult,omitempty" negatable:"" help:"Include adult content in search results."`
	Language           *string `json:"language,omitempty" help:"Language for the search results."`
	PrimaryReleaseYear *string `json:"primary_release_year,omitempty" help:"Filter results by primary release year."`
	Page               *uint   `json:"page,omitempty" help:"Page number of the results."`
	Region             *string `json:"region,omitempty" help:"Filter results by region."`
	Year               *string `json:"year,omitempty" help:"Filter results by year."`
}

func (*MovieSearchRequest) Query

func (r *MovieSearchRequest) Query() url.Values

type MovieSearchResponse

type MovieSearchResponse struct {
	Page         uint64 `json:"page"`
	Results      []Movie
	TotalPages   uint64 `json:"total_pages"`
	TotalResults uint64 `json:"total_results"`
}

Jump to

Keyboard shortcuts

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