auth package - github.com/cool2645/kotori-ng/auth - Go Packages

auth

package
v0.0.0-...-2017d89 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthorization

func CheckAuthorization(req *http.Request) (bool, model.User, string)

func CheckToken

func CheckToken(tokenString string) (ok bool, user model.User, msg string)

func GenerateToken

func GenerateToken(username string, password string) (ok bool, tokenString string, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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