query

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories added in v0.7.0

type Categories struct {
	ID           int         `json:"id"`
	Class        string      `json:"class"`
	Type         string      `json:"type"`
	Label        string      `json:"label"`
	URL          string      `json:"url"`
	URLComplete  string      `json:"url_complete"`
	Season       interface{} `json:"season"`
	EpisodeCount interface{} `json:"episode_count"`
}

type Channels

type Channels struct {
	ID           int    `json:"id"`
	Class        string `json:"class"`
	Type         string `json:"type"`
	Label        string `json:"label"`
	URL          string `json:"url"`
	URLComplete  string `json:"url_complete"`
	Season       int    `json:"season"`
	EpisodeCount int    `json:"episode_count"`
}

type Duration

type Duration time.Duration

func (Duration) Duration

func (v Duration) Duration() time.Duration

func (*Duration) UnmarshalJSON

func (v *Duration) UnmarshalJSON(b []byte) error

type Format

type Format struct {
	OriginalPath string            `json:"original_path"`
	OriginalName string            `json:"original_name"`
	Urls         map[string]string `json:"urls"`
}

type Hits

type Hits struct {
	ID                      int                      `json:"id"`
	Class                   string                   `json:"class"`
	Type                    string                   `json:"type"`
	Label                   string                   `json:"label"`
	Title                   string                   `json:"title"`
	HeadlineTitle           string                   `json:"headline_title"`
	Description             string                   `json:"description"`
	Text                    string                   `json:"text"`
	URLPage                 string                   `json:"url_page"`
	Path                    string                   `json:"path"`
	Duration                Duration                 `json:"duration"`
	SeasonNumber            int                      `json:"season_number"`
	EpisodeNumber           int                      `json:"episode_number"`
	IsAudioDescripted       bool                     `json:"is_audio_descripted"`
	IsPreviouslyBroadcasted bool                     `json:"is_previously_broadcasted"`
	IsMultiLingual          bool                     `json:"is_multi_lingual"`
	IsSubtitled             bool                     `json:"is_subtitled"`
	IsPreview               bool                     `json:"is_preview"`
	IsSponsored             bool                     `json:"is_sponsored"`
	Director                string                   `json:"director"`
	Producer                string                   `json:"producer"`
	Presenter               string                   `json:"presenter"`
	Casting                 string                   `json:"casting"`
	Characters              string                   `json:"characters"`
	ProductionYear          int                      `json:"production_year"`
	Dates                   map[string]UnixTimeStamp `json:"dates"`
	// Ranges                  Ranges          `json:"ranges"`
	Image         Image         `json:"image,omitempty"`
	Categories    []Categories  `json:"categories"`
	Channels      []Channels    `json:"channels"`
	Program       Program       `json:"program"`
	Season        seasonWrapper `json:"season"`
	RatingCsaCode string        `json:"rating_csa_code"`
	SiID          intOrString   `json:"si_id"`
	// FreeID        int        `json:"free_id"`
	// OrangeID      string     `json:"orange_id"`
	ObjectID string `json:"objectID"`
}

type Image

type Image struct {
	ID      int               `json:"id"`
	Title   string            `json:"title"`
	Credit  string            `json:"credit"`
	Formats map[string]Format `json:"formats"`
}
type Logo struct {
	OriginalName string `json:"original_name"`
	OriginalPath string `json:"original_path"`
	ID           int    `json:"id"`
}

type Program

type Program struct {
	ID           int    `json:"id"`
	Class        string `json:"class"`
	Type         string `json:"type"`
	Label        string `json:"label"`
	URL          string `json:"url"`
	URLComplete  string `json:"url_complete"`
	Season       int    `json:"season"`
	EpisodeCount int    `json:"episode_count"`
}

type QueryResults

type QueryResults struct {
	Results map[string]Result
}

type Result added in v0.12.0

type Result struct {
	Hits             []Hits `json:"hits"`
	NbHits           int    `json:"nbHits"`
	Page             int    `json:"page"`
	NbPages          int    `json:"nbPages"`
	HitsPerPage      int    `json:"hitsPerPage"`
	ProcessingTimeMS int    `json:"processingTimeMS"`
	ExhaustiveNbHits bool   `json:"exhaustiveNbHits"`
	Query            string `json:"query"`
	Params           string `json:"params"`
	Index            string `json:"index"`
}

type Season

type Season struct {
	ID           int    `json:"id"`
	Class        string `json:"class"`
	Type         string `json:"type"`
	Label        string `json:"label"`
	URL          string `json:"url"`
	URLComplete  string `json:"url_complete"`
	Season       int    `json:"season"`
	EpisodeCount int    `json:"episode_count"`
}

type UnixTimeStamp

type UnixTimeStamp time.Time

func (UnixTimeStamp) Time

func (v UnixTimeStamp) Time() time.Time

func (*UnixTimeStamp) UnmarshalJSON

func (v *UnixTimeStamp) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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