Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AuthLabelKey 控制是否开启认证 AuthLabelKey = "auth" // PermissionLabelKey 控制是否开启权限判定 PermissionLabelKey = "permission" // AllowLabelKey 控制允许的角色 AllowLabelKey = "allow" // 控制是否开启审计 AuditLabelKey = "audit" )
View Source
const ( Enable = true Disable = false )
View Source
const (
// ActionLableKey key name
ActionLableKey = "action"
)
View Source
const (
// ResourceLableKey key name
ResourceLableKey = "resource"
)
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.