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

Method GetSubjects

pkg/database/collections.go:73–75  ·  view source on GitHub ↗

GetSubjects - Get subject collection

()

Source from the content-addressed store, hash-verified

71
72// GetSubjects - Get subject collection
73func (s *SubjectCollection) GetSubjects() []*base.Subject {
74 return s.subjects
75}
76
77// Add - New subject to collection.
78func (s *SubjectCollection) Add(subject *base.Subject) {

Callers 5

TestSubjectCollectionFunction · 0.95
TestEmptyCollectionsFunction · 0.95
expandDirectRelationMethod · 0.95
TestToSubjectCollectionFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestSubjectCollectionFunction · 0.76
TestEmptyCollectionsFunction · 0.76
TestToSubjectCollectionFunction · 0.36