permissions

package
v1.8.19 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyExists = errors.New("the validator already exists") // 权限验证已经存在
)

Functions

func CheckPermission

func CheckPermission(model models.Strategy) error

CheckPermission 权限验证

func RegisterValidatePermission

func RegisterValidatePermission(f Validator) error

RegisterValidatePermission 注册权限验证模块

Types

type Validator

type Validator func(id uint64) error

Jump to

Keyboard shortcuts

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