inmemorystore

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: BSD-3-Clause Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) *inMemoryStore

New constructs an inMemoryStore.

func RemoveIndex added in v0.12.0

func RemoveIndex(s []uint64, index int) []uint64

Types

type Option

type Option func(*inMemoryStore)

Option defines functional option parameters for inMemoryStore.

func WithClock

func WithClock(clock clock.Clock) Option

WithClock is a functional option to inject a clock.Clock.

func WithLogger added in v0.2.0

func WithLogger(logger *log.Logger) Option

WithLogger is a functional option to inject a Logger.

func WithSerializer added in v0.2.0

func WithSerializer(serializer rangedb.RecordSerializer) Option

WithSerializer is a functional option to inject a RecordSerializer.

func WithUUIDGenerator added in v0.12.0

func WithUUIDGenerator(uuidGenerator shortuuid.Generator) Option

WithUUIDGenerator is a functional option to inject a shortuuid.Generator.

Jump to

Keyboard shortcuts

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