Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct {
Name string `json:"name"`
Relations []Relation `json:"relations"`
Actions []Action `json:"actions"`
Option map[string]interface{} `json:"option"`
}
Entity -
func (Entity) GetRelation ¶
GetRelation -
type Leaf ¶
type Leaf struct {
Exclusion bool `json:"exclusion"`
Type LeafType `json:"type"` // tupleToUserSet or computedUserSet
Value string `json:"value"`
}
Leaf -
type Relation ¶
type Relation struct {
Name string `json:"name"`
Types []string `json:"type"`
Option map[string]interface{} `json:"option"`
}
Relation -
type Rewrite ¶
type Rewrite struct {
Type OPType `json:"type"` // union or intersection
Children []Child `json:"children"`
}
Rewrite -
type Schema ¶
func (Schema) GetEntityByName ¶
GetEntityByName -
Click to show internal directories.
Click to hide internal directories.