helpers

package
v0.0.0-...-b5072a3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu []MenuItem
type MenuHelper struct{}

func NewMenuHelper

func NewMenuHelper() *MenuHelper
type MenuItem struct {
	Title     shared.SectionType
	TargetURL string
	Active    bool
}

type Sort

type Sort []SortOption

func NewSort

func NewSort(sortTypes ...models.SortType) Sort

type SortHelper

type SortHelper struct{}

func NewSortHelper

func NewSortHelper() *SortHelper

func (*SortHelper) MakeSort

func (s *SortHelper) MakeSort(args *shared.IndexArgs) *Sort

type SortOption

type SortOption struct {
	SortType models.SortType
	Title    string
	Value    int
	Selected bool
}

type Star

type Star struct {
	Value    float64
	Title    string
	Selected bool
	HalfStep bool
}

type StarsHelper

type StarsHelper struct {
}

func NewStarsHelper

func NewStarsHelper() *StarsHelper

func (*StarsHelper) MakeStars

func (s *StarsHelper) MakeStars(r float64) (stars []Star)

type VideoContentHelper

type VideoContentHelper struct{}

func NewVideoContentHelper

func NewVideoContentHelper() *VideoContentHelper

func (*VideoContentHelper) GetCachedPoster240

func (s *VideoContentHelper) GetCachedPoster240(m models.VideoContentWithMetadata) string

func (*VideoContentHelper) GetOriginalPoster

func (s *VideoContentHelper) GetOriginalPoster(m models.VideoContentWithMetadata) string

func (*VideoContentHelper) GetRating

func (*VideoContentHelper) GetTitle

func (*VideoContentHelper) GetYear

func (*VideoContentHelper) HasPoster

func (*VideoContentHelper) HasRating

func (*VideoContentHelper) HasYear

func (*VideoContentHelper) MakeMenu

func (s *VideoContentHelper) MakeMenu(args *shared.IndexArgs) Menu

Jump to

Keyboard shortcuts

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