Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
NewAdapter creates a new adapter. It assumes that the Pebble DB is already open. A prefix is used if given and represents the Pebble prefix to save the under.
Types ¶
type CasbinRule ¶
type CasbinRule struct {
Key string `json:"key"`
PType string `json:"p_type"`
V0 string `json:"v0"`
V1 string `json:"v1"`
V2 string `json:"v2"`
V3 string `json:"v3"`
V4 string `json:"v4"`
V5 string `json:"v5"`
}
CasbinRule represents a Casbin rule line.
func (*CasbinRule) Rule ¶
func (cr *CasbinRule) Rule() []string
Click to show internal directories.
Click to hide internal directories.