auth

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MPL-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 (*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)

通过 r.Filter(<middleware>) 添加中间件

Jump to

Keyboard shortcuts

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