Documentation ¶
Index ¶
Constants ¶
View Source
const CasbinDatasource = "casbin_datasource"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Casbin ¶
type Casbin struct { bean.Component DB *gorm.DB `db:"casbin_datasource"` Model map[string]string `value:"casbin.model"` Log logging.Logger `bean:"log"` // contains filtered or unexported fields }
func (Casbin) GetEnforcer ¶
func (r Casbin) GetEnforcer() *casbin.Enforcer
func (*Casbin) Repository ¶
Click to show internal directories.
Click to hide internal directories.