utils

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgLotteryChance     = "lottery-chance"
	CfgQualityLevel      = "quality-level"
	CfgBlockList         = "block-list"
	CfgBlockListSwitcher = "block-list-switcher"
	CfgLimiterSwitcher   = "limiter-switcher"
	CfgStdoutAccessLog   = "stdout-access-log"
	CfgAccessLogStdout   = "access-log-stdout"
	CfgAccessLogLevel    = "access-log-level"
)
View Source
const (
	ChunkPath = iota + 1
	ChunkTitleId
	ChunkEpisodeId
	ChunkQualityLevel
	ChunkName
)

Variables

View Source
var GetTitleQualityByString = map[string]TitleQuality{
	"480":  TitleQualitySD,
	"720":  TitleQualityHD,
	"1080": TitleQualityFHD,
}

Functions

func SetUpSyslogWriter

func SetUpSyslogWriter(c *cli.Context) (_ io.Writer, e error)

Types

type ContextKey

type ContextKey uint8
const (
	ContextKeyLogger ContextKey = iota
	ContextKeyCliContext
	ContextKeyAbortFunc
	ContextKeyRPatcher
	ContextKeyBlocklist
	ContextKeyRuntime
	ContextKeyBalancers
)
const (
	FbReqTmrPreCond ContextKey = iota
	FbReqTmrBlocklist
	FbReqTmrFakeQuality
	FbReqTmrConsulLottery
	FbReqTmrReqSign
	FbReqTmrBlcPreCond
)
const (
	FbReqTmruestTimer ContextKey = iota
)

type TitleQuality

type TitleQuality uint8
const (
	TitleQualityNone TitleQuality = iota
	TitleQualitySD
	TitleQualityHD
	TitleQualityFHD
)

func (*TitleQuality) String

func (m *TitleQuality) String() string

Jump to

Keyboard shortcuts

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