store

package
v0.0.0-...-a26ebea Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStoreMapIsNil = validation.NewError(
	"offset_store_map_is_nil",
	"the offset store map must be allocated",
)

Functions

This section is empty.

Types

type Store

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

Store holds mapping between topic partitions and offsets.

This is used to track highest/most-recent offsets for each topic partition as the flow through the system.

func Generate

func Generate(rand *rand.Rand) *Store

Generate a random Header value.

func New

func New() (*Store, validation.ErrorGroup)

New creates and validates a new Store.

func (*Store) Check

func (s *Store) Check() validation.ErrorGroup

Check runs default validation checks for the store.

func (*Store) Generate

func (*Store) Generate(rand *rand.Rand, size int) reflect.Value

Generate random Store values.

Interface: quick.Generator

func (*Store) Put

Put stores topic partition -> offset.

func (*Store) PutParts

func (s *Store) PutParts(topic_ string, partition_ int32, offset_ int64) error

PutParts converts and stores primitive types to topic partition -> offset.

func (*Store) String

func (s *Store) String() string

String value of the Store.

Interface: fmt.Stringer.

Jump to

Keyboard shortcuts

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