handlers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	ConfigService     data.ConfigService
	ControlConfigPath string
	// contains filtered or unexported fields
}

func (*Handlers) ControlPageHandler

func (h *Handlers) ControlPageHandler(path string) echo.HandlerFunc

func (*Handlers) GetStream

func (h *Handlers) GetStream(ctx echo.Context) error

GetStream returns the url of the stream currently running

func (*Handlers) PlayStream

func (h *Handlers) PlayStream(c echo.Context) error

PlayStream gets a stream url and attempts to switch the omxplayer output to that stream. If no stream is playing, then a new instance of omxplayer is started.

func (*Handlers) StopStream

func (h *Handlers) StopStream(ctx echo.Context) error

StopStream stops the stream currently running

Jump to

Keyboard shortcuts

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