series

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound               = errors.New("series not found")
	ErrMetaNotFound           = errors.New("series meta not found")
	ErrChildrenSeriesNotFound = errors.New("series children series not found")
	ErrChildrenVideosNotFound = errors.New("series videos not found")
)

Functions

This section is empty.

Types

type Meta

type Meta struct {
	SeriesID    int    `db:"series_id" json:"id"`
	URL         string `db:"url" json:"url"`
	SeriesName  string `db:"name" json:"name"`
	Description string `db:"description" json:"description"`
	Thumbnail   string `db:"thumbnail" json:"thumbnail"`
	Depth       int    `db:"depth" json:"depth"`
}

Meta is used as a children object for a series

type Series

type Series struct {
	Meta
	ImmediateChildSeries []Meta       `json:"childSeries"`
	ChildVideos          []video.Meta `json:"videos"`
}

Series provides basic information about a series this is useful when you want to know the current series and see its immediate children.

type SeriesDB added in v0.9.6

type SeriesDB struct {
	Meta
	ImmediateChildSeries []Meta         `json:"childSeries"`
	ChildVideos          []video.MetaDB `json:"videos"`
}

SeriesDB provides basic information about a series this is useful when you want to know the current series and see its immediate children.

Jump to

Keyboard shortcuts

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