Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Resource key name Resource = "resource" // Auth 控制是否开启认证 Auth = "auth" // Permission 控制是否开启权限判定 Permission = "permission" // Allow 控制允许的角色 Allow = "allow" // 控制是否开启审计 Audit = "audit" )
View Source
const ( Enable = true Disable = false )
View Source
const (
// Action key name
Action = "action"
)
Variables ¶
View Source
var ( // Get Label Get = action("get") // List label List = action("list") // Create label Create = action("create") // Update label Update = action("update") // Delete label Delete = action("delete") )
Functions ¶
func NewActionLabel ¶ added in v1.8.7
Action action Lable
Types ¶
type Meta ¶ added in v1.8.5
type Meta map[string]interface{}
func (Meta) AuditEnable ¶ added in v1.8.5
func (Meta) AuthEnable ¶ added in v1.8.5
func (Meta) PermissionEnable ¶ added in v1.8.5
Click to show internal directories.
Click to hide internal directories.