NewStaticTupleIterator returns a [TupleIterator] that iterates over the provided slice.
(tuples []*openfgav1.Tuple)
| 131 | |
| 132 | // NewStaticTupleIterator returns a [TupleIterator] that iterates over the provided slice. |
| 133 | func NewStaticTupleIterator(tuples []*openfgav1.Tuple) TupleIterator { |
| 134 | iter := &StaticIterator[*openfgav1.Tuple]{ |
| 135 | items: tuples, |
| 136 | mu: &sync.Mutex{}, |
| 137 | } |
| 138 | |
| 139 | return iter |
| 140 | } |
| 141 | |
| 142 | // NewStaticTupleKeyIterator returns a [TupleKeyIterator] that iterates over the provided slice. |
| 143 | func NewStaticTupleKeyIterator(tupleKeys []*openfgav1.TupleKey) TupleKeyIterator { |
no outgoing calls
searching dependent graphs…