Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPserver ¶
HTTPserver - new http.Server instance.
func NewServer ¶
func NewServer(a string) *HTTPserver
NewServer constractor generates a new HTTPserver type.
func (*HTTPserver) ServeMediaHandler ¶ added in v1.14.0
func (s *HTTPserver) ServeMediaHandler(tv *soapcalls.TVPayload, media interface{}) http.HandlerFunc
ServeMediaHandler is a helper method used to properly handle media and subtitle streaming.
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.
Click to show internal directories.
Click to hide internal directories.