middleware

package
v0.0.0-...-bdd2a71 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAuthList = map[string]struct{}{
	"/feed": {},
}

Functions

func HandleCors

func HandleCors(next http.HandlerFunc) http.HandlerFunc

func JwtAuthenticate

func JwtAuthenticate(r *http.Request, token string) (*utils.JwtUser, error)

JwtAuthenticate jwt校验中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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