iter

package
v4.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 6 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 {
	iter.CloseIterator[logproto.PatternSample]

	Pattern() string
	Level() string
}

func NewChainedIterator

func NewChainedIterator(pattern, lvl string, iterators []Iterator) Iterator

NewChainedIterator returns an iterator that plays each given iterator to completion, in order, before moving to the next. It makes no assumption about the time range each iterator covers.

Producing time-ordered output, if that is required, is the caller's job.

func NewMerge

func NewMerge(iters ...Iterator) Iterator

func NewQueryClientIterator

func NewQueryClientIterator(client logproto.Pattern_QueryClient) Iterator

NewQueryClientIterator returns an iterator over a QueryClient.

func NewQueryResponseIterator

func NewQueryResponseIterator(resp *logproto.QueryPatternsResponse) Iterator

type PatternIter

type PatternIter struct {
	iter.CloseIterator[logproto.PatternSample]
	// contains filtered or unexported fields
}

func NewEmpty

func NewEmpty(pattern string) *PatternIter

func NewSlice

func NewSlice(pattern, lvl string, s []logproto.PatternSample) *PatternIter

func (*PatternIter) Level

func (s *PatternIter) Level() string

func (*PatternIter) Pattern

func (s *PatternIter) Pattern() string

Jump to

Keyboard shortcuts

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