Documentation
¶
Index ¶
- type BaseStreamSource
- func (s *BaseStreamSource) Active() bool
- func (s *BaseStreamSource) Diagnostic() StreamSourceDiag
- func (s *BaseStreamSource) HealthCheck() error
- func (s *BaseStreamSource) IsRadio() bool
- func (s *BaseStreamSource) M3UTags() m3uparser.M3UTags
- func (s *BaseStreamSource) MediaName() string
- func (s *BaseStreamSource) MediaType() contenttype.MediaType
- func (s *BaseStreamSource) Url() string
- type HttpDiags
- type M3U8StreamSource
- type MPDStreamSource
- type StreamSource
- type StreamSourceDiag
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 (s *BaseStreamSource) Active() bool
func (*BaseStreamSource) Diagnostic ¶
func (s *BaseStreamSource) Diagnostic() StreamSourceDiag
func (*BaseStreamSource) HealthCheck ¶
func (s *BaseStreamSource) HealthCheck() error
func (*BaseStreamSource) IsRadio ¶
func (s *BaseStreamSource) IsRadio() bool
func (*BaseStreamSource) M3UTags ¶
func (s *BaseStreamSource) M3UTags() m3uparser.M3UTags
func (*BaseStreamSource) MediaName ¶
func (s *BaseStreamSource) MediaName() string
func (*BaseStreamSource) MediaType ¶
func (s *BaseStreamSource) MediaType() contenttype.MediaType
func (*BaseStreamSource) Url ¶
func (s *BaseStreamSource) Url() string
type M3U8StreamSource ¶
type M3U8StreamSource struct {
BaseStreamSource
}
func (*M3U8StreamSource) MasterPlaylist ¶
func (s *M3U8StreamSource) MasterPlaylist() string
func (*M3U8StreamSource) ServeManifest ¶
func (s *M3U8StreamSource) ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)
func (*M3U8StreamSource) ServeMedia ¶
func (s *M3U8StreamSource) ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)
type MPDStreamSource ¶
type MPDStreamSource struct {
BaseStreamSource
}
func (*MPDStreamSource) MasterPlaylist ¶
func (s *MPDStreamSource) MasterPlaylist() string
func (*MPDStreamSource) ServeManifest ¶
func (s *MPDStreamSource) ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)
func (*MPDStreamSource) ServeMedia ¶
func (s *MPDStreamSource) ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)
type StreamSource ¶
type StreamSource interface {
ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)
ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)
HealthCheck() error
Diagnostic() StreamSourceDiag
Active() bool
MediaType() contenttype.MediaType
MediaName() string
MasterPlaylist() string
M3UTags() m3uparser.M3UTags
IsRadio() bool
Url() string
}
Click to show internal directories.
Click to hide internal directories.