Documentation ¶
Index ¶
- type CasbinRule
- type Filter
- type PGAdapter
- func (a *PGAdapter) AddPolicies(sec string, ptype string, rules [][]string) error
- func (a *PGAdapter) AddPolicy(sec string, ptype string, rule []string) error
- func (a *PGAdapter) LoadPolicy(model model.Model) error
- func (a *PGAdapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error
- func (a *PGAdapter) RemovePolicies(sec string, ptype string, rules [][]string) error
- func (a *PGAdapter) RemovePolicy(sec string, ptype string, rule []string) error
- func (a *PGAdapter) SavePolicy(model model.Model) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CasbinRule ¶
type CasbinRule struct { ID string PType string `db:"ptype"` V0 string V1 string V2 string V3 string V4 string V5 string }
CasbinRule represents a rule in Casbin.
func (*CasbinRule) String ¶
func (r *CasbinRule) String() string
type PGAdapter ¶
type PGAdapter struct {
// contains filtered or unexported fields
}
func NewPGAdapter ¶
func (*PGAdapter) AddPolicies ¶
func (*PGAdapter) RemoveFilteredPolicy ¶
func (*PGAdapter) RemovePolicies ¶
func (*PGAdapter) RemovePolicy ¶
Click to show internal directories.
Click to hide internal directories.