series

package
v0.9.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

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

NewController creates a new controller

Types

type Controller

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

Controller contains our dependencies

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.SeriesDB, error)

FromPath will return a series from a given path

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) GetSeries added in v0.9.5

func (c *Controller) GetSeries(ctx context.Context, seriesID int) (series.SeriesDB, error)

GetSeries provides the immediate children of series and videos

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