leveldbstore

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dbFilePath string, options ...Option) (*levelDbStore, error)

New constructs a levelDbStore.

Types

type Option

type Option func(*levelDbStore)

Option defines functional option parameters for levelDbStore.

func WithClock

func WithClock(clock clock.Clock) Option

WithClock is a functional option to inject a Clock.

func WithLogger

func WithLogger(logger *log.Logger) Option

WithLogger is a functional option to inject a Logger.

func WithSerializer

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