middleware

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorization

func Authorization(c *context.Context, username string) (bool, error)

Authorization 鉴权

func JwtAuth

func JwtAuth(username string, role string) (t string, err error)

JwtAuth ..

func JwtParse

func JwtParse(c *context.Context, token string) (string, error)

JwtParse .. TODO: check jwt is not expired

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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