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 ¶
func (m *AntiReplyMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
防重放
type CtxMetaMiddleware ¶
type CtxMetaMiddleware struct { }
func NewCtxMetaMiddleware ¶
func NewCtxMetaMiddleware() *CtxMetaMiddleware
func (*CtxMetaMiddleware) Handle ¶
func (m *CtxMetaMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
将http header 放入 ctx 里面使用 metadata 保存.
type SsoMiddleware ¶
func NewSsoMiddleware ¶
func NewSsoMiddleware(auth authrpc.AuthRpc) *SsoMiddleware
func (*SsoMiddleware) Handle ¶
func (m *SsoMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
单点登录(single sign on)
Click to show internal directories.
Click to hide internal directories.