breadcrumb

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: 13 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.BreadcrumbRepo

NewController creates a new controller

Types

type Controller

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

Controller contains our dependency

func (*Controller) Find

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

Find will return 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