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 ¶
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
Click to show internal directories.
Click to hide internal directories.