Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestLogger ¶
func RequestLogger(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
RequestLogger logs HTTP requests to Stdout.
Types ¶
type MediaPlayerAPI ¶
type MediaPlayerAPI struct { Handler controller.Handler Playback controller.MediaPlaybackController }
MediaPlayerAPI defines all routes for the media player API.
func NewMediaPlayerAPI ¶
func NewMediaPlayerAPI(focus controller.Handler, keyboard controller.MediaPlaybackController) *MediaPlayerAPI
NewMediaPlayerAPI initializes a new media player API.
func (*MediaPlayerAPI) Register ¶
func (a *MediaPlayerAPI) Register(container *restful.Container)
Register adds all the media player API routes to the given container.
Click to show internal directories.
Click to hide internal directories.