auth

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 8 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
}

func NewKeyauthAuther

func NewKeyauthAuther(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