label

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Resource key name
	Resource = "resource"

	// Auth 控制是否开启AccessToken认证
	Auth = "auth"

	// Code 控制是否开启验证码认证
	Code = "code"

	// Permission 控制是否开启权限判定
	Permission = "permission"

	// Allow 控制允许的角色
	Allow = "allow"

	// 控制是否开启审计
	Audit = "audit"
)
View Source
const (
	Enable  = true
	Disable = false
)

Variables

This section is empty.

Functions

func AllowAll

func AllowAll() (values []string)

Types

type Meta

type Meta map[string]interface{}

func (Meta) Allow

func (m Meta) Allow() []string

func (Meta) AuditEnable

func (m Meta) AuditEnable() bool

func (Meta) AuthEnable

func (m Meta) AuthEnable() bool

func (Meta) PermissionEnable

func (m Meta) PermissionEnable() bool

func (Meta) Resource

func (m Meta) Resource() string

Jump to

Keyboard shortcuts

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