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

Method CreateSubjectIterator

pkg/database/collections.go:66–70  ·  view source on GitHub ↗

CreateSubjectIterator - Create subject iterator according to collection.

()

Source from the content-addressed store, hash-verified

64
65// CreateSubjectIterator - Create subject iterator according to collection.
66func (s *SubjectCollection) CreateSubjectIterator() *SubjectIterator {
67 return &SubjectIterator{
68 subjects: s.subjects,
69 }
70}
71
72// GetSubjects - Get subject collection
73func (s *SubjectCollection) GetSubjects() []*base.Subject {

Callers 4

TestSubjectIteratorFunction · 0.95
TestSubjectCollectionFunction · 0.95
expandDirectRelationMethod · 0.95

Calls

no outgoing calls

Tested by 2

TestSubjectIteratorFunction · 0.76
TestSubjectCollectionFunction · 0.76