Documentation
¶
Index ¶
- type Checker
- type Manager
- func (h *Manager) AddRule(ctx context.Context, pytepe string, rule []string) error
- func (h *Manager) AddRules(ctx context.Context, ptype string, rules [][]string) error
- func (h *Manager) AfterOp() error
- func (h *Manager) QuerryAll(ctx context.Context) ([]po.CasbinRule, error)
- func (h *Manager) QueryRuleById(ctx context.Context, id int) (*po.CasbinRule, error)
- func (h *Manager) QueryRuleByRule(ctx context.Context, ptype string, rule []string) ([]po.CasbinRule, error)
- func (h *Manager) QueryRulesByIds(ctx context.Context, ids []int) ([]po.CasbinRule, error)
- func (h *Manager) RemoveRuleById(ctx context.Context, id int) error
- func (h *Manager) RemoveRuleByIds(ctx context.Context, ids []int) error
- func (h *Manager) RemoveRuleByRule(ctx context.Context, ptype string, rule []string) error
- func (h *Manager) RemoveRuleByRules(ctx context.Context, ptype string, rules [][]string) error
- func (h *Manager) UpdateRuleById(ctx context.Context, id int, ptype string, ru []string) error
- func (h *Manager) UpdateRulesByIds(ctx context.Context, ids []int, ptype string, ru []string) error
- func (h *Manager) UpdateRulesByRule(ctx context.Context, ptype string, ru []string, rule []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func NewChecker ¶
func (*Checker) CheckConsist ¶
CheckConsist Check for consistency
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) QueryRuleById ¶
func (*Manager) QueryRuleByRule ¶
func (*Manager) QueryRulesByIds ¶
func (*Manager) RemoveRuleById ¶
删除操作,提供按照id删,和按照规则删
func (*Manager) RemoveRuleByIds ¶
func (*Manager) RemoveRuleByRule ¶
func (*Manager) RemoveRuleByRules ¶
func (*Manager) UpdateRuleById ¶
修改操作
func (*Manager) UpdateRulesByIds ¶
Click to show internal directories.
Click to hide internal directories.