auth

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TokenKey key = 0

Variables

This section is empty.

Functions

func Auth

func Auth(rw http.ResponseWriter, req *http.Request) bool

func GetAndCheckToken

func GetAndCheckToken(tokenString string) (*jwt.Token, bool)

func GetToken

func GetToken(r *http.Request) *jwt.Token

func SetToken

func SetToken(r *http.Request, val *jwt.Token)

Types

This section is empty.

Jump to

Keyboard shortcuts

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