Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { *casbin.Enforcer // contains filtered or unexported fields }
func Default ¶
func Default() *Controller
func New ¶
func New(opts ...Option) *Controller
func (*Controller) Init ¶
func (ctrl *Controller) Init() error
func (*Controller) Provide ¶
func (ctrl *Controller) Provide(ctx context.Context) interface{}
type Option ¶
type Option func(*Options)
func WithDbName ¶
func WithEnableLog ¶
func WithModelConf ¶
Click to show internal directories.
Click to hide internal directories.