iterator

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClosed    = errors.New("Closed")
	ErrCancelled = errors.New("Cancelled")
)

Functions

This section is empty.

Types

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func New

func New(cxt context.Context, buf int) *Iterator

func (*Iterator) Close

func (t *Iterator) Close() error

func (*Iterator) Next

func (t *Iterator) Next() (interface{}, error)

func (*Iterator) Write

func (t *Iterator) Write(r Result) error

type Result

type Result struct {
	Elem  interface{}
	Error error
}

Jump to

Keyboard shortcuts

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