Documentation ¶
Index ¶
- type HTTPserver
- func (s *HTTPserver) AddHandler(path string, payload *soapcalls.TVPayload, media interface{})
- func (s *HTTPserver) RemoveHandler(path string)
- func (s *HTTPserver) ServeMediaHandler() http.HandlerFunc
- func (s *HTTPserver) StartServer(serverStarted chan<- error, media, subtitles interface{}, ...)
- func (s *HTTPserver) StopServer()
- type Screen
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) AddHandler ¶ added in v1.15.0
func (s *HTTPserver) AddHandler(path string, payload *soapcalls.TVPayload, media interface{})
AddHandler dynamically adds a new handler. Currenly used by the gapless playback logic where we use the same server to serve multiple media files.
func (*HTTPserver) RemoveHandler ¶ added in v1.15.0
func (s *HTTPserver) RemoveHandler(path string)
RemoveHandler dynamically removes a handler.
func (*HTTPserver) ServeMediaHandler ¶ added in v1.14.0
func (s *HTTPserver) ServeMediaHandler() 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.