data

package
v0.0.0-...-2296552 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStreamableVideoFormat

func IsStreamableVideoFormat(videoExtension string) bool

Types

type Config

type Config struct {
	Port      int
	Verbose   bool
	VideoDirs []string
}

func DefaultConfig

func DefaultConfig() *Config

func ParseJsonConfig

func ParseJsonConfig(configPath string) (*Config, error)

func (Config) String

func (c Config) String() string

type VideoDict

type VideoDict map[string]VideoInfo

type VideoDir

type VideoDir struct {
	DirPath string
	Videos  []VideoInfo
}

func NewVideoDir

func NewVideoDir(path string, Videos []VideoInfo) VideoDir

type VideoDirectories

type VideoDirectories []VideoDir

func (VideoDirectories) Len

func (vd VideoDirectories) Len() int

func (VideoDirectories) Less

func (vd VideoDirectories) Less(i, j int) bool

func (VideoDirectories) Swap

func (vd VideoDirectories) Swap(i, j int)

type VideoInfo

type VideoInfo struct {
	FilePath string
	FileName string
	Key      string
}

Jump to

Keyboard shortcuts

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