Documentation
¶
Index ¶
- func NewStreamStatus(cc *ccontext.CContext, lineup *models.Lineup, channelID string) (*streamsuite.Stream, string, error)
- func RestartTuner(cc *context.CContext, lineup *models.Lineup)
- func ServeAPI(cc *context.CContext)
- func ServeBox(urlPrefix string, box packr.Box) gin.HandlerFunc
- func ServeLineup(cc *ccontext.CContext, exit chan bool, lineup *models.Lineup)
- func StartTuner(cc *context.CContext, lineup *models.Lineup)
- type LineupStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStreamStatus ¶
func NewStreamStatus(cc *ccontext.CContext, lineup *models.Lineup, channelID string) (*streamsuite.Stream, string, error)
NewStreamStatus creates a new stream status
func RestartTuner ¶
RestartTuner will trigger a restart of the tuner server for the given lineup.
func ServeBox ¶
func ServeBox(urlPrefix string, box packr.Box) gin.HandlerFunc
ServeBox returns a middleware handler that serves static files from a Packr box.
func ServeLineup ¶
ServeLineup starts up a server dedicated to a single Lineup.
Types ¶
type LineupStatus ¶
type LineupStatus struct { ScanInProgress models.ConvertibleBoolean ScanPossible models.ConvertibleBoolean `json:",omitempty"` Source string `json:",omitempty"` SourceList []string `json:",omitempty"` Progress int `json:",omitempty"` // Percent complete Found int `json:",omitempty"` // Number of found channels }
LineupStatus exposes the status of the channel lineup.
Click to show internal directories.
Click to hide internal directories.