Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectType ¶
type ObjectTypes ¶
type ObjectTypes map[model.ObjectName]*ObjectType
type Relation ¶
type Relation struct { Count int32 `json:"_count,omitempty"` SubjectTypes SubjectTypes `json:"subject_types,omitempty"` }
type Relations ¶
type Relations map[model.RelationName]*Relation
type Stats ¶
type Stats struct {
ObjectTypes ObjectTypes `json:"object_types,omitempty"`
}
func (*Stats) ObjectRefCount ¶
func (s *Stats) ObjectRefCount(on model.ObjectName) int32
func (*Stats) RelationRefCount ¶
func (s *Stats) RelationRefCount(on model.ObjectName, rn model.RelationName) int32
func (*Stats) RelationSubjectCount ¶
func (s *Stats) RelationSubjectCount(on model.ObjectName, rn model.RelationName, sn model.ObjectName, sr model.RelationName) int32
type SubjectRelation ¶
type SubjectRelation struct {
Count int32 `json:"_count,omitempty"`
}
type SubjectRelations ¶
type SubjectRelations map[model.RelationName]*SubjectRelation
type SubjectType ¶
type SubjectType struct { Count int32 `json:"_count,omitempty"` SubjectRelations SubjectRelations `json:"subject_relations,omitempty"` }
type SubjectTypes ¶
type SubjectTypes map[model.ObjectName]*SubjectType
Click to show internal directories.
Click to hide internal directories.