iter

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBatch

func ReadBatch(it Iterator, batchSize int) (*logproto.QueryPatternsResponse, error)

Types

type Iterator

type Iterator interface {
	Next() bool

	Pattern() string
	At() logproto.PatternSample

	Error() error
	Close() error
}
var Empty Iterator = &emptyIterator{}

func NewMerge

func NewMerge(iters ...Iterator) Iterator

func NewNonOverlappingIterator

func NewNonOverlappingIterator(pattern string, iterators []Iterator) Iterator

NewNonOverlappingIterator gives a chained iterator over a list of iterators.

func NewQueryClientIterator

func NewQueryClientIterator(client logproto.Pattern_QueryClient) Iterator

NewQueryClientIterator returns an iterator over a QueryClient.

func NewQueryResponseIterator

func NewQueryResponseIterator(resp *logproto.QueryPatternsResponse) Iterator

func NewSlice

func NewSlice(pattern string, s []logproto.PatternSample) Iterator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL