mem

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMem added in v1.3.0

func IsMem(s kv.Store) bool

IsMem lets asserting if given store is an in memory one.

func NewStore

func NewStore() kv.TxnStore

NewStore returns a new in-process store that can be used for testing

func NewValue

func NewValue(vers int, msg proto.Message) kv.Value

NewValue returns a new fake Value around the given proto

func NewValueWithData

func NewValueWithData(vers int, data []byte) kv.Value

NewValueWithData returns a new fake Value around the given data

Types

This section is empty.

Jump to

Keyboard shortcuts

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