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

Function NewAttributeIterator

pkg/database/iterators.go:208–213  ·  view source on GitHub ↗

NewAttributeIterator -

(attributes ...*base.Attribute)

Source from the content-addressed store, hash-verified

206
207// NewAttributeIterator -
208func NewAttributeIterator(attributes ...*base.Attribute) *AttributeIterator {
209 return &AttributeIterator{
210 index: 0,
211 attributes: attributes,
212 }
213}
214
215// HasNext - Checks whether next entity exists
216func (u *AttributeIterator) HasNext() bool {

Callers 5

QueryAttributesMethod · 0.92
QueryAttributesMethod · 0.92
TestGetNextReturnsNilFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestGetNextReturnsNilFunction · 0.68