auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Artistic-2.0 Imports: 14 Imported by: 0

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 added in v0.0.13

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>) 添加中间件

Jump to

Keyboard shortcuts

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