github.com/MontFerret/ferret@v0.18.0/pkg/runtime/collections/iterator.go (about) 1 package collections 2 3 import ( 4 "context" 5 6 "github.com/MontFerret/ferret/pkg/runtime/core" 7 ) 8 9 type ( 10 Iterator interface { 11 Next(ctx context.Context, scope *core.Scope) (*core.Scope, error) 12 } 13 14 Iterable interface { 15 Iterate(ctx context.Context, scope *core.Scope) (Iterator, error) 16 } 17 )