handler

package
v0.0.0-...-0fc5b3e Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PLAYLIST_FILE_EXTENSION = "m3u8"
	TOKEN_URL_PARAMETER     = "token"
)

Variables

This section is empty.

Functions

func Hls

func Hls(ctx *state.State, h http.Handler) http.Handler

func Jsonify

func Jsonify(w http.ResponseWriter, v interface{})

Writes the JSON representation of v to the supplied http.ResposeWriter. If an error occours while marshalling the object the http response will be an internal server error.

func Stats

func Stats(ctx *state.State, w http.ResponseWriter, r *http.Request)

Types

type Handler

type Handler func(ctx *state.State, w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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