breadcrumb

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: 13 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 dependency

func NewController

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

NewController creates a new controller

func (*Controller) Find

func (c *Controller) Find(ctx context.Context, path string) (breadcrumb.Item, error)

Find will returns either a series or a video for a given path

func (*Controller) Series

func (c *Controller) Series(ctx context.Context, seriesID int) ([]breadcrumb.Breadcrumb, error)

Series will return the breadcrumb from SeriesID to root

func (*Controller) Video

func (c *Controller) Video(ctx context.Context, videoID int) ([]breadcrumb.Breadcrumb, error)

Video returns the absolute path from a VideoID

Jump to

Keyboard shortcuts

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