Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NilConfig = errors.New("config is nil") NilClient = errors.New("client is nil") )
View Source
var ( InvalidStreamURL = errors.New("invalid stream URL") HLSUnexpectedResponse = errors.New("unexpected HLS response") )
View Source
var DefaultSettings = CrawlerSettings{ CrawlerSettings: crawly.DefaultCrawlerSettings, }
Functions ¶
func IsValidStreamURL ¶
Types ¶
type ConfigOption ¶
type ConfigOption func(cfg *config)
func WithClient ¶
func WithClient(client cclient.Client) ConfigOption
func WithLogger ¶
func WithLogger(logger *slog.Logger) ConfigOption
func WithSettings ¶
func WithSettings(settings CrawlerSettings) ConfigOption
type Crawler ¶
func NewCrawler ¶
func NewCrawler(opts ...ConfigOption) (*Crawler, error)
func (*Crawler) SetSettings ¶
func (cr *Crawler) SetSettings(settings CrawlerSettings)
func (*Crawler) Settings ¶
func (cr *Crawler) Settings() CrawlerSettings
type CrawlerSettings ¶
type CrawlerSettings struct {
crawly.CrawlerSettings
}
type EntityData ¶
type EntityData struct {
Live bool `json:"live"`
}
type Handle ¶
type Handle struct { Type HandleType Value string }
type HandleType ¶
type HandleType uint
const (
HandleStreamURL HandleType = (iota + 1)
)
func (HandleType) String ¶
func (ht HandleType) String() string
type M3UPlaylist ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.