httphandlers

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(scr Screen)

Close .

func Emit

func Emit(scr Screen, s string)

Emit .

Types

type HTTPserver

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

HTTPserver - new http.Server instance.

func NewServer

func NewServer(a string) *HTTPserver

NewServer - create a new HTTP server.

func (*HTTPserver) ServeFiles

func (s *HTTPserver) ServeFiles(serverStarted chan<- struct{}, media, subtitles interface{},
	tvpayload *soapcalls.TVPayload, screen Screen) error

ServeFiles - Start HTTP server and serve the files.

func (*HTTPserver) StopServeFiles

func (s *HTTPserver) StopServeFiles()

StopServeFiles .

type Screen

type Screen interface {
	EmitMsg(string)
	Fini()
}

Screen interface.

Jump to

Keyboard shortcuts

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