middlewarex

package
v0.0.0-...-09fef34 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AntiReplyMiddleware

type AntiReplyMiddleware struct {
}

func NewAntiReplyMiddleware

func NewAntiReplyMiddleware() *AntiReplyMiddleware

func (*AntiReplyMiddleware) Handle

防重放

type CtxMetaMiddleware

type CtxMetaMiddleware struct {
}

func NewCtxMetaMiddleware

func NewCtxMetaMiddleware() *CtxMetaMiddleware

func (*CtxMetaMiddleware) Handle

将http header 放入 ctx 里面使用 metadata 保存.

type SsoMiddleware

type SsoMiddleware struct {
	AuthRpc authrpc.AuthRpc
}

func NewSsoMiddleware

func NewSsoMiddleware(auth authrpc.AuthRpc) *SsoMiddleware

func (*SsoMiddleware) Handle

func (m *SsoMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc

单点登录(single sign on)

Jump to

Keyboard shortcuts

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