sources

package
v0.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sources

type Sources struct {
	// contains filtered or unexported fields
}

func NewSources

func NewSources() Sources

func (*Sources) Active

func (s *Sources) Active() bool

func (*Sources) AddSource

func (s *Sources) AddSource(entry m3uparser.M3UEntry, timeout int) (bool, error)

func (*Sources) Diagnostic

func (s *Sources) Diagnostic() SourcesDiag

func (*Sources) GetActiveSource

func (s *Sources) GetActiveSource() types.StreamSource

func (*Sources) HealthCheck

func (s *Sources) HealthCheck() error

func (*Sources) IsRadio

func (s *Sources) IsRadio() bool

func (*Sources) M3UTags

func (s *Sources) M3UTags() m3uparser.M3UTags

func (*Sources) MasterPlaylist

func (s *Sources) MasterPlaylist() string

func (*Sources) MediaName

func (s *Sources) MediaName() string

func (*Sources) ServeManifest

func (s *Sources) ServeManifest(w http.ResponseWriter, r *http.Request, timeout int)

func (*Sources) ServeMedia

func (s *Sources) ServeMedia(w http.ResponseWriter, r *http.Request, timeout int)

func (*Sources) SourceExists

func (s *Sources) SourceExists(entry m3uparser.M3UEntry) bool

type SourcesDiag

type SourcesDiag struct {
	Sources []types.StreamSourceDiag `json:"sources"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL