Documentation
¶
Index ¶
- func ReadAll(it Iterator) (*logproto.QueryPatternsResponse, error)
- func ReadBatch(it Iterator, batchSize int) (*logproto.QueryPatternsResponse, error)
- type Iterator
- func NewMerge(iters ...Iterator) Iterator
- func NewNonOverlappingIterator(pattern string, iterators []Iterator) Iterator
- func NewQueryClientIterator(client logproto.Pattern_QueryClient) Iterator
- func NewQueryResponseIterator(resp *logproto.QueryPatternsResponse) Iterator
- func NewSlice(pattern string, s []logproto.PatternSample) Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator interface { Next() bool Pattern() string At() logproto.PatternSample Error() error Close() error }
var Empty Iterator = &emptyIterator{}
func NewNonOverlappingIterator ¶
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
Click to show internal directories.
Click to hide internal directories.