authorize

package
v0.0.0-...-455e706 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 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 AuthzController

type AuthzController struct {
	// contains filtered or unexported fields
}

AuthzController创建用于处理授权请求的授权处理程序。

func NewAuthzController

func NewAuthzController(store authorizer.PolicyGetter) *AuthzController

初始化 store 是从 cache中得到

func (*AuthzController) Authorize

func (a *AuthzController) Authorize(c *gin.Context)

验证权限

Jump to

Keyboard shortcuts

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