handlers

package
v0.0.0-...-ba7b697 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType      = "Content-Type"
	ContentLength    = "Content-Length"
	ContentLocation  = "Location"
	ContentJSON      = "application/json; charset=UTF-8"
	ContentTextPlain = "text/plain; charset=UTF-8"
)

Variables

This section is empty.

Functions

func Auth

func Auth() martini.Handler

func Logger

func Logger() martini.Handler

func Origin

func Origin(allowedOrigins []string) martini.Handler

func Responder

func Responder() martini.Handler

Types

type AppSession

type AppSession struct {
	Id string
}

type AppSessionPlayer

type AppSessionPlayer struct {
	Id string
}

type Respond

type Respond interface {
	Valid(status int, v interface{})
	ValidRedirect(status int, url string, req *http.Request)
	Error(error)
}

type Time

type Time interface {
	GetStartTime() time.Time
}

Jump to

Keyboard shortcuts

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