auth

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthErr = errors.New("auth error")

Functions

func Auth

func Auth(secret string) gin.HandlerFunc

func CheckToken

func CheckToken(key string, token string) bool

func CreateAndSaveToken

func CreateAndSaveToken(c *gin.Context, secret string)

func CreateToken

func CreateToken(key string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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