model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllParser = []Parser{
	ParserTv,
	ParserEpi,
}

Functions

This section is empty.

Types

type Group

type Group struct {
	series.Group
}

Group describes a group for graphql

type GroupInput

type GroupInput struct {
	Name        string     `json:"name"`
	Target      string     `json:"target"`
	Parser      Parser     `json:"parser"`
	Directories []string   `json:"directories"`
	Exts        []string   `json:"exts"`
	Meta        *MetaInput `json:"meta"`
}

type Meta

type Meta struct {
	series.Meta
}

Meta describes a meta type for graphql

type MetaInput

type MetaInput struct {
	series.Meta
}

MetaInput describes a meta input type for graphql

type Movie

type Movie struct {
	movies.Movie
}

type MovieInput

type MovieInput struct {
	Name        string   `json:"name"`
	Target      string   `json:"target"`
	Directories []string `json:"directories"`
	Exts        []string `json:"exts"`
}

type Parser

type Parser string
const (
	ParserTv  Parser = "tv"
	ParserEpi Parser = "epi"
)

func (Parser) IsValid

func (e Parser) IsValid() bool

func (Parser) MarshalGQL

func (e Parser) MarshalGQL(w io.Writer)

func (Parser) String

func (e Parser) String() string

func (*Parser) UnmarshalGQL

func (e *Parser) UnmarshalGQL(v interface{}) error

type Season

type Season struct {
	series.Season
}

type SeasonInput

type SeasonInput struct {
	Idx  int        `json:"idx"`
	Meta *MetaInput `json:"meta"`
}

type Title

type Title struct {
	series.Title
}

type TitleInput

type TitleInput struct {
	Name string     `json:"name"`
	Meta *MetaInput `json:"meta"`
}

type Todo

type Todo struct {
	ID     string `json:"id"`
	Text   string `json:"text"`
	Done   bool   `json:"done"`
	UserID string `json:"user"`
}

Jump to

Keyboard shortcuts

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