Documentation ¶
Index ¶
- func Get(URL string, userAgent string, timeout time.Duration) (*http.Response, error)
- type Channel
- type M3uParser
- func (p *M3uParser) FilterBy(key string, filters []string, retrieve bool)
- func (p *M3uParser) GetRandomStream(shuffle bool) Channel
- func (p *M3uParser) GetStreamsJSON() string
- func (p *M3uParser) GetStreamsSlice() []Channel
- func (p *M3uParser) ParseM3u(path string, checkLive bool, enforceSchema bool)
- func (p *M3uParser) RemoveByCategory(category []string)
- func (p *M3uParser) RemoveByExtension(extension []string)
- func (p *M3uParser) ResetOperations()
- func (p *M3uParser) RetrieveByCategory(category []string)
- func (p *M3uParser) RetrieveByExtension(extension []string)
- func (p *M3uParser) SortBy(key string, asc bool)
- func (p *M3uParser) ToFile(fileName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type M3uParser ¶
type M3uParser struct { Timeout int UserAgent string CheckLive bool // contains filtered or unexported fields }
M3uParser - A parser for m3u files.
func (*M3uParser) GetRandomStream ¶
GetRandomStream - Return a random stream information.
func (*M3uParser) GetStreamsJSON ¶
GetStreamsJSON - Get the streams information as json.
func (*M3uParser) GetStreamsSlice ¶
GetStreamsSlice - Get the parsed streams information slice.
func (*M3uParser) RemoveByCategory ¶
RemoveByCategory - Removes streams information with category containing a certain filter word/s.
func (*M3uParser) RemoveByExtension ¶
RemoveByExtension - Remove stream information with certain extension/s.
func (*M3uParser) ResetOperations ¶
func (p *M3uParser) ResetOperations()
ResetOperations - Reset the stream information list to initial state before various operations.
func (*M3uParser) RetrieveByCategory ¶
RetrieveByCategory - Retrieve only streams information that contains a certain filter word/s.
func (*M3uParser) RetrieveByExtension ¶
RetrieveByExtension - Select only streams information with a certain extension/s.
Click to show internal directories.
Click to hide internal directories.