Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnforcer ¶
func GetEnforcer() *casbin.SyncedEnforcer
func GetTableName ¶
func GetTableName() string
Types ¶
type TableCasbinRule ¶
type TableCasbinRule struct { ID uint `gorm:"primaryKey;autoIncrement"` Ptype string `gorm:"size:64;uniqueIndex:unique_index"` V0 string `gorm:"size:64;uniqueIndex:unique_index"` // user V1 string `gorm:"size:64;uniqueIndex:unique_index"` // role V2 string `gorm:"size:64;uniqueIndex:unique_index"` // domain V3 string `gorm:"size:64;uniqueIndex:unique_index"` V4 string `gorm:"size:64;uniqueIndex:unique_index"` V5 string `gorm:"size:64;uniqueIndex:unique_index"` }
Click to show internal directories.
Click to hide internal directories.