Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPermit ¶
func IsPermit(permissionMapping PermissionMapping, object Object, target interface{}) bool
Types ¶
type GeneralPermission ¶
type GeneralPermission int64
const ( Read GeneralPermission = 1 << iota Create Update Delete )
type PermissionMapping ¶
type UserPermission ¶
type UserPermission int64
const ( BulkInsert UserPermission = 1 << (iota + lengthGeneralPermission) BulkDelete )
Click to show internal directories.
Click to hide internal directories.