httphandlers

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPserver

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

HTTPserver - new http.Server instance.

func NewServer

func NewServer(a string) *HTTPserver

NewServer constractor generates a new HTTPserver type.

func (*HTTPserver) StartServer

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

StartServer will start a HTTP server to serve the selected media files and also handle the subscriptions requests from the DMR devices.

func (*HTTPserver) StopServer

func (s *HTTPserver) StopServer()

StopServer forcefully closes the HTTP server.

type Screen

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

Screen interface is used to push message back to the user as these are returned by the subscriptions.

Jump to

Keyboard shortcuts

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