model

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facet

type Facet struct {
	Name   string       `json:"name"`
	Values []FacetValue `json:"values,omitempty"`
}

type FacetValue

type FacetValue interface {
	IsFacetValue()
}

type FacetValueInt

type FacetValueInt struct {
	IntVal int `json:"intVal"`
	Count  int `json:"count"`
}

func (FacetValueInt) IsFacetValue

func (FacetValueInt) IsFacetValue()

type FacetValueString

type FacetValueString struct {
	StrVal string `json:"strVal"`
	Count  int    `json:"count"`
}

func (FacetValueString) IsFacetValue

func (FacetValueString) IsFacetValue()

type InFacet

type InFacet struct {
	Term  *InFacetTerm `json:"term,omitempty"`
	Query *InFilter    `json:"query"`
}

type InFacetTerm

type InFacetTerm struct {
	Field       string   `json:"field"`
	Name        string   `json:"name"`
	MinDocCount int      `json:"minDocCount"`
	Size        int      `json:"size"`
	Include     []string `json:"include,omitempty"`
	Exclude     []string `json:"exclude,omitempty"`
}

type InFilter

type InFilter struct {
	BoolTerm *InFilterBoolTerm `json:"boolTerm,omitempty"`
}

type InFilterBoolTerm

type InFilterBoolTerm struct {
	Field  string   `json:"field"`
	And    bool     `json:"and"`
	Values []string `json:"values,omitempty"`
}

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Media

type Media struct {
	Name        string  `json:"name"`
	Mimetype    string  `json:"mimetype"`
	Pronom      *string `json:"pronom,omitempty"`
	Type        string  `json:"type"`
	URI         string  `json:"uri"`
	Orientation int     `json:"orientation"`
	Fulltext    *string `json:"fulltext,omitempty"`
	Width       int     `json:"width"`
	Height      int     `json:"height"`
	Length      int     `json:"length"`
}

type MediaList

type MediaList struct {
	Name  string   `json:"name"`
	Items []*Media `json:"items"`
}

type MediathekBaseEntry

type MediathekBaseEntry struct {
	ID                string             `json:"id"`
	Signature         string             `json:"signature"`
	SignatureOriginal string             `json:"signatureOriginal"`
	Source            string             `json:"source"`
	Title             []*MultiLangString `json:"title"`
	Series            *string            `json:"series,omitempty"`
	Place             *string            `json:"place,omitempty"`
	Date              *string            `json:"date,omitempty"`
	CollectionTitle   *string            `json:"collectionTitle,omitempty"`
	Person            []*Person          `json:"person,omitempty"`
	Catalog           []string           `json:"catalog,omitempty"`
	Category          []string           `json:"category,omitempty"`
	Tags              []string           `json:"tags,omitempty"`
	URL               *string            `json:"url,omitempty"`
	Publisher         *string            `json:"publisher,omitempty"`
	Rights            *string            `json:"rights,omitempty"`
	License           *string            `json:"license,omitempty"`
	References        []*Reference       `json:"references,omitempty"`
	Type              *string            `json:"type,omitempty"`
	Poster            *Media             `json:"poster,omitempty"`
}

type MediathekFullEntry

type MediathekFullEntry struct {
	ID             string                `json:"id"`
	Base           *MediathekBaseEntry   `json:"base"`
	Notes          []*Note               `json:"notes,omitempty"`
	Abstract       []*MultiLangString    `json:"abstract,omitempty"`
	ReferencesFull []*MediathekBaseEntry `json:"referencesFull,omitempty"`
	Extra          []*KeyValue           `json:"extra,omitempty"`
	Media          []*MediaList          `json:"media,omitempty"`
}

type MultiLangString

type MultiLangString struct {
	Lang       string `json:"lang"`
	Value      string `json:"value"`
	Translated bool   `json:"translated"`
}

type Note

type Note struct {
	Title *string `json:"title,omitempty"`
	Text  string  `json:"text"`
}

type PageInfo

type PageInfo struct {
	HasNextPage     bool   `json:"hasNextPage"`
	HasPreviousPage bool   `json:"hasPreviousPage"`
	CurrentCursor   string `json:"currentCursor"`
	StartCursor     string `json:"startCursor"`
	EndCursor       string `json:"endCursor"`
}

type Person

type Person struct {
	Name string  `json:"name"`
	Role *string `json:"role,omitempty"`
}

type Query added in v2.0.3

type Query struct {
}

type Reference

type Reference struct {
	Type      *string `json:"type,omitempty"`
	Title     *string `json:"title,omitempty"`
	Signature string  `json:"signature"`
}

type SearchResult

type SearchResult struct {
	TotalCount int                   `json:"totalCount"`
	PageInfo   *PageInfo             `json:"pageInfo"`
	Edges      []*MediathekFullEntry `json:"edges"`
	Facets     []*Facet              `json:"facets"`
}

type SortField added in v2.0.4

type SortField struct {
	Field string `json:"field"`
	Order string `json:"order"`
}

Jump to

Keyboard shortcuts

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