Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPolicyLine ¶ added in v0.10.0
LoadPolicyLine loads a text line as a policy rule to model.
Types ¶
type Adapter ¶
type Adapter interface { LoadPolicy(model model.Model) error SavePolicy(model model.Model) error AddPolicy(sec string, ptype string, rule []string) error RemovePolicy(sec string, ptype string, rule []string) error RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error }
Adapter is the interface for Casbin adapters.
Click to show internal directories.
Click to hide internal directories.