auth

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 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