routes

package
v0.0.0-...-f8e4cae Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAPIInformation

func HandleAPIInformation(writer http.ResponseWriter, request *http.Request)

func HandleDashboardServerInformation

func HandleDashboardServerInformation(writer http.ResponseWriter, request *http.Request)

func HandleMoviesList

func HandleMoviesList(writer http.ResponseWriter, request *http.Request)

func HandleSeriesList

func HandleSeriesList(writer http.ResponseWriter, request *http.Request)

func InitializeMovieRouter

func InitializeMovieRouter()

Types

type FailedResponse

type FailedResponse struct {
	Success     bool        `json:"success"`
	Data        interface{} `json:"data"`
	Message     string      `json:"message"`
	RequestedOn int64       `json:"requested_on"`
}

type Movie

type Movie struct {
	ID               uint64             `json:"id"`
	Title            string             `json:"title"`
	OriginalTitle    string             `json:"original_title"`
	LocalTitle       string             `json:"local_title"`
	OriginalLanguage string             `json:"original_language"`
	Languages        []*common.Language `json:"languages"`
	Overview         string             `json:"overview"`
	Tagline          string             `json:"tagline"`
	Genres           []*common.Genre    `json:"genres"`
	Homepage         string             `json:"homepage"`
	Runtime          uint64             `json:"runtime"`
	Status           uint64             `json:"status"`
	Adult            bool               `json:"adult"`
	ImdbId           string             `json:"imdb_id"`
	ReleaseDate      string             `json:"release_date"`
	//ProductionCompanies
	//ProductionCountries
	VoteAverage float64           `json:"vote_average"`
	VoteCount   uint64            `json:"vote_count"`
	Popularity  float64           `json:"popularity"`
	Budget      uint64            `json:"budget"`
	Revenue     uint64            `json:"revenue"`
	Backdrop    map[string]string `json:"backdrop"`
	Poster      map[string]string `json:"poster"`
}

type SuccessfulResponse

type SuccessfulResponse struct {
	Success     bool        `json:"success"`
	Data        interface{} `json:"data"`
	Message     string      `json:"message"`
	RequestedOn int64       `json:"requested_on"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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