testing

package
v0.7.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenTestKv

func OpenTestKv(ctx context.Context, name string, flag TestKVFlag) (*atomic.AtomicKV, func() error, error)

OpenTestKv opens a new test kv store It returns a teardown function. If a teardown function is not necessary, it does nothing

Types

type TestKVFlag

type TestKVFlag uint8
const (
	TestKVFlagInMemory TestKVFlag = iota
	TestKVFlagBadger
)

Jump to

Keyboard shortcuts

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