handlers

package
v0.0.0-...-ac75ae8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelloHandler

func HelloHandler(w http.ResponseWriter, r *http.Request)

func JWTAuthHandler

func JWTAuthHandler(h http.HandlerFunc) http.HandlerFunc

func LoggingHandler

func LoggingHandler(h http.Handler) http.Handler

func LoginHandler

func LoginHandler(secret string, users user.Users) http.Handler

func VersionHandler

func VersionHandler(version string) http.Handler

Types

type HelloResponse

type HelloResponse struct {
	Message string `json:"message"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type VersionResponse

type VersionResponse struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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