authorize

package
v0.0.0-...-4f9d474 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 6 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
}

func NewAuthzController

func NewAuthzController(getter authorization.PolicyGetter) *AuthzController

NewAuthzController 创建一个 authz controller.

func (*AuthzController) Authorize

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

Authorize 返回一个资源是否被允许访问.

Jump to

Keyboard shortcuts

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