common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Err3LettersSearch will throw if search query string is less than 3 letters.
	Err3LettersSearch = errors.New("search query needs at least 3 letters")
	// ErrInvalidMainType will throw if not a valid type.
	ErrInvalidMainType = errors.New("invalid type")
	// ErrInvalidSeason will throw if value is not a valid season name.
	ErrInvalidSeason = errors.New("invalid season name")
	// ErrMissingRedis will throw if redis client is nil.
	ErrMissingRedis = errors.New("missing redis client")
)

Functions

This section is empty.

Types

type DateTime

type DateTime struct {
	Date string `json:"date"`
	Time string `json:"time"`
}

DateTime represents common struct containing date and time.

type Genre

type Genre struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

Genre represents genre simple model.

type IDImageTitle

type IDImageTitle struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
}

IDImageTitle represents common struct containing id, image, and title.

type IDName

type IDName struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

IDName represents common struct containing id and name.

type IDTitle

type IDTitle struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

IDTitle represents common struct containing id and title.

type IDTitleImageRole

type IDTitleImageRole struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
	Role  string `json:"role"`
}

IDTitleImageRole represents common struct containing id, title, image, and role.

type IDTitleType

type IDTitleType struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Type  string `json:"type"`
}

IDTitleType represents common struct containing id, title, and type.

type IDTitleTypeImage

type IDTitleTypeImage struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Type  string `json:"type"`
	Image string `json:"image"`
}

IDTitleTypeImage represents common struct containing id, title, type, and image.

type IDTypeName

type IDTypeName struct {
	ID   int    `json:"id"`
	Type string `json:"type"`
	Name string `json:"name"`
}

IDTypeName represents common struct containing id, type and name.

Jump to

Keyboard shortcuts

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