inmemorystore

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 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.

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.

Jump to

Keyboard shortcuts

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