Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(RBAC), "*"), wire.Struct(new(Casbinx), "*"), wire.Struct(new(dal.Menu), "*"), wire.Struct(new(biz.Menu), "*"), wire.Struct(new(api.Menu), "*"), wire.Struct(new(dal.MenuResource), "*"), wire.Struct(new(dal.Role), "*"), wire.Struct(new(biz.Role), "*"), wire.Struct(new(api.Role), "*"), wire.Struct(new(dal.RoleMenu), "*"), wire.Struct(new(dal.User), "*"), wire.Struct(new(biz.User), "*"), wire.Struct(new(api.User), "*"), wire.Struct(new(dal.UserRole), "*"), wire.Struct(new(biz.Login), "*"), wire.Struct(new(api.Login), "*"), )
Collection of wire providers
Functions ¶
This section is empty.
Types ¶
type Casbinx ¶
type Casbinx struct { Cache cachex.Cacher MenuDAL *dal.Menu MenuResourceDAL *dal.MenuResource RoleDAL *dal.Role // contains filtered or unexported fields }
Load rbac permissions to casbin
func (*Casbinx) GetEnforcer ¶
func (a *Casbinx) GetEnforcer() *casbin.Enforcer
Click to show internal directories.
Click to hide internal directories.