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 JwtTokenMiddleware ¶
type JwtTokenMiddleware struct {
// contains filtered or unexported fields
}
func NewJwtTokenMiddleware ¶
func NewJwtTokenMiddleware(verifier TokenVerifier) *JwtTokenMiddleware
func (*JwtTokenMiddleware) Handle ¶
func (j *JwtTokenMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
type OperationMiddleware ¶
type OperationMiddleware struct {
// contains filtered or unexported fields
}
func NewOperationMiddleware ¶
func NewOperationMiddleware(holder *rbacx.RbacHolder, sr syslogrpc.SyslogRpc) *OperationMiddleware
func (*OperationMiddleware) Handle ¶
func (m *OperationMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
type SignTokenMiddleware ¶
type SignTokenMiddleware struct { }
func NewSignTokenMiddleware ¶
func NewSignTokenMiddleware() *SignTokenMiddleware
func (*SignTokenMiddleware) Handle ¶
func (m *SignTokenMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
未登录token 未登录时,token = md5(tm,ts)
type TimeTokenMiddleware ¶
type TimeTokenMiddleware struct { }
func NewTimeTokenMiddleware ¶
func NewTimeTokenMiddleware() *TimeTokenMiddleware
func (*TimeTokenMiddleware) Handle ¶
func (m *TimeTokenMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
未登录token 未登录时,token = md5(tm,ts)
Click to show internal directories.
Click to hide internal directories.