series

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller contains our dependencies

func NewController

func NewController(db *sqlx.DB, cdn *s3.S3, enc *encoder.Encoder, conf *creator.Config) *Controller

NewController creates a new controller

func (*Controller) AllBelow

func (c *Controller) AllBelow(ctx context.Context, SeriesID int) ([]series.Meta, error)

AllBelow returns all series below a certain series including depth

func (*Controller) FromPath

func (c *Controller) FromPath(ctx context.Context, path string) (series.Series, error)

FromPath will return a series from a given path

func (*Controller) Get

func (c *Controller) Get(ctx context.Context, seriesID int) (series.Series, error)

Get provides the immediate children of series and videos

func (*Controller) GetMeta

func (c *Controller) GetMeta(ctx context.Context, seriesID int) (series.Meta, error)

GetMeta provides basic information for only the selected series

func (*Controller) ImmediateChildrenSeries

func (c *Controller) ImmediateChildrenSeries(ctx context.Context, SeriesID int) ([]series.Meta, error)

ImmediateChildrenSeries returns series directly below the chosen series

func (*Controller) List

func (c *Controller) List(ctx context.Context) ([]series.Meta, error)

List returns all series in the DB including their depth

Jump to

Keyboard shortcuts

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