middleware

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License @title 行为相关中间件

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

View Source
var JwtMiddleware *jwt.GfJWTMiddleware

Functions

func Authenticator

func Authenticator(ctx context.Context) (interface{}, error)

Authenticator 用户标识 私有载荷

func IdentityHandler

func IdentityHandler(ctx context.Context) interface{}

IdentityHandler 标识

func New

func New() *sMiddleware

func NewAction

func NewAction() *sAction

func NewBizCtx

func NewBizCtx() *sBizCtx

func NewJwtAuth

func NewJwtAuth() *sJwtAuth

func NewSession

func NewSession() *sSession

func PayloadFunc

func PayloadFunc(data interface{}) jwt.MapClaims

PayloadFunc 向webtoken添加额外的有效负载数据。

func Unauthorized

func Unauthorized(ctx context.Context, code int, message string)

Unauthorized 授权校验不通过

Types

This section is empty.

Jump to

Keyboard shortcuts

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