api

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 28 Imported by: 0

Documentation

Index

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

func RestartTuner(cc *context.CContext, lineup *models.Lineup)

RestartTuner will trigger a restart of the tuner server for the given lineup.

func ServeAPI

func ServeAPI(cc *context.CContext)

ServeAPI starts up the telly frontend + REST API.

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

func ServeLineup(cc *ccontext.CContext, exit chan bool, lineup *models.Lineup)

ServeLineup starts up a server dedicated to a single Lineup.

func StartTuner

func StartTuner(cc *context.CContext, lineup *models.Lineup)

StartTuner will start a new tuner server for the given 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.

Jump to

Keyboard shortcuts

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