Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseMonitor ¶
type BaseMonitor struct { Ctx MonitorCtx Provider string }
func (*BaseMonitor) CheckLive ¶
func (b *BaseMonitor) CheckLive(usersConfig config.UsersConfig) bool
func (*BaseMonitor) CreateVideo ¶
func (b *BaseMonitor) CreateVideo(usersConfig config.UsersConfig) *interfaces.VideoInfo
func (*BaseMonitor) DownloadProvider ¶
func (b *BaseMonitor) DownloadProvider() string
func (*BaseMonitor) GetCtx ¶
func (b *BaseMonitor) GetCtx() *MonitorCtx
type HeadersConfig ¶
type Mock ¶
type Mock struct { Video *interfaces.VideoInfo IsLive bool }
func (*Mock) CreateVideo ¶
func (m *Mock) CreateVideo(usersConfig config.UsersConfig) *interfaces.VideoInfo
type MonitorCtx ¶
func CreateMonitorCtx ¶
func CreateMonitorCtx(module config.ModuleConfig) MonitorCtx
monitorCtx contains mod's extraConfig and its own http client
func GetCtx ¶
func GetCtx(modName string) *MonitorCtx
func (*MonitorCtx) GetHeaders ¶
func (c *MonitorCtx) GetHeaders() map[string]string
func (*MonitorCtx) GetProxy ¶
func (c *MonitorCtx) GetProxy() (string, bool)
type VideoMonitor ¶
type VideoMonitor interface { CheckLive(usersConfig config.UsersConfig) bool CreateVideo(usersConfig config.UsersConfig) *interfaces.VideoInfo GetCtx() *MonitorCtx DownloadProvider() string }
Click to show internal directories.
Click to hide internal directories.