serving

package
v0.0.0-...-3807ea0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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