Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyauthAuther ¶
type KeyauthAuther struct {
// contains filtered or unexported fields
}
由Keyauth提供的 HTTP认证中间件
func NewKeyauthAuther ¶
func NewKeyauthAuther(client *rpc.ClientSet, serviceName string) *KeyauthAuther
func NewKeyauthAuther1 ¶
func NewKeyauthAuther1(auth token.ServiceClient) *KeyauthAuther
func (*KeyauthAuther) GinAuthHandlerFunc ¶
func (a *KeyauthAuther) GinAuthHandlerFunc() gin.HandlerFunc
Gin auth Middleware 通过 r.Use(<middleware>) 添加中间件
r := gin.New() r.Use()
func (*KeyauthAuther) RestfulAuthHandlerFunc ¶
func (a *KeyauthAuther) RestfulAuthHandlerFunc( req *restful.Request, resp *restful.Response, chain *restful.FilterChain, )
Go-Restful auth Middleware 通过 r.Filter(<middleware>) 添加中间件
Click to show internal directories.
Click to hide internal directories.