testing

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryKV

type MemoryKV struct {
	// contains filtered or unexported fields
}

func NewMemoryKV

func NewMemoryKV() *MemoryKV

func (*MemoryKV) BeginTransaction

func (m *MemoryKV) BeginTransaction() kv.Transaction

func (*MemoryKV) Delete

func (m *MemoryKV) Delete(key []byte) error

func (*MemoryKV) Get

func (m *MemoryKV) Get(key []byte) ([]byte, error)

func (*MemoryKV) Set

func (m *MemoryKV) Set(key []byte, value []byte) error

type MemoryTransaction

type MemoryTransaction struct {
	// contains filtered or unexported fields
}

func (*MemoryTransaction) Commit

func (m *MemoryTransaction) Commit() error

func (*MemoryTransaction) Delete

func (m *MemoryTransaction) Delete(key []byte) error

func (*MemoryTransaction) Discard

func (m *MemoryTransaction) Discard()

func (*MemoryTransaction) Get

func (m *MemoryTransaction) Get(key []byte) ([]byte, error)

func (*MemoryTransaction) Set

func (m *MemoryTransaction) Set(key []byte, value []byte) error

Jump to

Keyboard shortcuts

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