Help us shape the future of Go! Take the 2026 Go Developer Survey

iter

package
v3.6.19 Latest Latest
Warning

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

Go to latest
Published: Oct 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 NewMerge

func NewMerge(iters ...Iterator) Iterator

func NewNonOverlappingIterator

func NewNonOverlappingIterator(pattern, lvl 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

type PatternIter added in v3.2.0

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

func NewEmpty added in v3.2.0

func NewEmpty(pattern string) *PatternIter

func NewSlice

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

func (*PatternIter) Level added in v3.6.0

func (s *PatternIter) Level() string

func (*PatternIter) Pattern added in v3.2.0

func (s *PatternIter) Pattern() string

Jump to

Keyboard shortcuts

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