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 )
Click to show internal directories.
Click to hide internal directories.