handlers

package
v0.0.0-...-d819944 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 10

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