auth

package
v0.0.0-...-75939a1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(fs ...FuncAuth) middleware.Middleware

auth 授权登录认证中间件

Types

type CheckUser

type CheckUser interface {
	ParseUserToken(ctx context.Context, token string) (*myctx.JwtCustomClaims, error)
}

type FuncAuth

func UserAuth

func UserAuth(c CheckUser) FuncAuth

Jump to

Keyboard shortcuts

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