Documentation
¶
Index ¶
- type BaseStreamSource
- func (stream *BaseStreamSource) Active() bool
- func (stream *BaseStreamSource) HealthCheck(timeout int) error
- func (stream *BaseStreamSource) IsRadio() bool
- func (stream *BaseStreamSource) M3UTags() m3uparser.M3UTags
- func (stream *BaseStreamSource) MediaName() string
- func (stream *BaseStreamSource) MediaType() contenttype.MediaType
- func (stream *BaseStreamSource) Url() string
- type M3UStreamSource
- type MPDStreamSource
- type Sources
- func (s *Sources) Active() bool
- func (s *Sources) AddSource(entry m3uparser.M3UEntry, timeout int)
- func (s *Sources) GetActiveSource() StreamSource
- func (s *Sources) HealthCheck(timeout int) error
- func (s *Sources) IsRadio() bool
- func (s *Sources) M3UTags() m3uparser.M3UTags
- func (s *Sources) MasterPlaylist() string
- func (s *Sources) MediaName() string
- func (s *Sources) Serve(w http.ResponseWriter, r *http.Request, timeout int)
- func (s *Sources) SourceExists(entry m3uparser.M3UEntry) bool
- func (s *Sources) Sources() []StreamSource
- type StreamSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseStreamSource ¶
type BaseStreamSource struct {
StreamSource
// contains filtered or unexported fields
}
func (*BaseStreamSource) Active ¶
func (stream *BaseStreamSource) Active() bool
func (*BaseStreamSource) HealthCheck ¶
func (stream *BaseStreamSource) HealthCheck(timeout int) error
func (*BaseStreamSource) IsRadio ¶
func (stream *BaseStreamSource) IsRadio() bool
func (*BaseStreamSource) M3UTags ¶
func (stream *BaseStreamSource) M3UTags() m3uparser.M3UTags
func (*BaseStreamSource) MediaName ¶
func (stream *BaseStreamSource) MediaName() string
func (*BaseStreamSource) MediaType ¶
func (stream *BaseStreamSource) MediaType() contenttype.MediaType
func (*BaseStreamSource) Url ¶
func (stream *BaseStreamSource) Url() string
type M3UStreamSource ¶
type M3UStreamSource struct {
BaseStreamSource
}
func (*M3UStreamSource) MasterPlaylist ¶
func (stream *M3UStreamSource) MasterPlaylist() string
func (*M3UStreamSource) Serve ¶
func (stream *M3UStreamSource) Serve(w http.ResponseWriter, r *http.Request, timeout int)
type MPDStreamSource ¶
type MPDStreamSource struct {
BaseStreamSource
}
func (*MPDStreamSource) MasterPlaylist ¶
func (stream *MPDStreamSource) MasterPlaylist() string
func (*MPDStreamSource) Serve ¶
func (stream *MPDStreamSource) Serve(w http.ResponseWriter, r *http.Request, timeout int)
type Sources ¶
type Sources struct {
// contains filtered or unexported fields
}
func CreateSources ¶
func CreateSources() Sources
func (*Sources) GetActiveSource ¶
func (s *Sources) GetActiveSource() StreamSource
func (*Sources) HealthCheck ¶
func (*Sources) MasterPlaylist ¶
func (*Sources) SourceExists ¶ added in v0.5.0
func (*Sources) Sources ¶ added in v0.5.0
func (s *Sources) Sources() []StreamSource
Click to show internal directories.
Click to hide internal directories.