iterator

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventIterator added in v0.9.0

type EventIterator interface {
	Iterator
	Event() (*api.EventWrapper, error)
	Seek(eventID rlid.RLID) bool
}

EventIterator allows access to events in the database

type GroupIterator added in v0.5.1

type GroupIterator interface {
	Iterator
	Group() (*api.ConsumerGroup, error)
}

GroupIterator allows access to ConsumerGroup models in the datbase

type IndashIterator added in v0.11.0

type IndashIterator interface {
	Iterator
	Hash() ([]byte, error)
}

IndashIterator allows access to the event hashes in the database

type Iterator

type Iterator interface {
	Key() []byte
	Value() []byte
	Next() bool
	Prev() bool
	Error() error
	Release()
}

Iterators allow memory safe list operations from the Store.

type ObjectIterator added in v0.9.0

type ObjectIterator interface {
	Object() (interface{}, error)
}

ObjectIterator interfaces fetch the item at the cursor as an interface. Used primarily for testing iterators, the type-specific methods are used in production.

type Paginator added in v0.9.0

type Paginator interface {
	Page(*api.PageInfo) ([]interface{}, string, error)
}

Paginator iterators allow the fetching of multiple items at a time. Used primarily for testing paginated interfaces, the NextPage() methods are used in production.

type TopicIterator

type TopicIterator interface {
	Iterator
	Topic() (*api.Topic, error)
	NextPage(in *api.PageInfo) (*api.TopicsPage, error)
}

TopicIterator allows access to Topic models in the database

type TopicNamesIterator added in v0.5.1

type TopicNamesIterator interface {
	Iterator
	TopicName() (*api.TopicName, error)
	NextPage(in *api.PageInfo) (*api.TopicNamesPage, error)
}

TopicIterator allows access to Topic names index in the database

Jump to

Keyboard shortcuts

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