MCPcopy Create free account
hub / github.com/Permify/permify / NewEntityCollection

Function NewEntityCollection

pkg/database/collections.go:90–97  ·  view source on GitHub ↗

NewEntityCollection - Create new subject collection.

(entities ...*base.Entity)

Source from the content-addressed store, hash-verified

88
89// NewEntityCollection - Create new subject collection.
90func NewEntityCollection(entities ...*base.Entity) *EntityCollection {
91 if len(entities) == 0 {
92 return &EntityCollection{}
93 }
94 return &EntityCollection{
95 entities: entities,
96 }
97}
98
99// CreateEntityIterator - Create entity iterator according to collection.
100func (e *EntityCollection) CreateEntityIterator() *EntityIterator {

Callers 3

TestEntityIteratorFunction · 0.85
TestEntityCollectionFunction · 0.85
TestEmptyCollectionsFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestEntityIteratorFunction · 0.68
TestEntityCollectionFunction · 0.68
TestEmptyCollectionsFunction · 0.68