Documentation
¶
Index ¶
- func NewAdapter(line string) persist.Adapter
- func NewEnforcer() *casbin.Enforcer
- type Adapter
- func (sa *Adapter) AddPolicy(sec string, ptype string, rule []string) error
- func (sa *Adapter) LoadPolicy(model model.Model) error
- func (sa *Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error
- func (sa *Adapter) RemovePolicy(sec string, ptype string, rule []string) error
- func (sa *Adapter) SavePolicy(model model.Model) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewEnforcer ¶
Types ¶
type Adapter ¶
type Adapter struct {
Line string
}
func (*Adapter) RemoveFilteredPolicy ¶
func (*Adapter) RemovePolicy ¶
Click to show internal directories.
Click to hide internal directories.