mockstorage

package
v0.0.0-...-5f8ca62 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

type MockStorage struct {
	HasFn    hasDelegate
	GetFn    getDelegate
	PutFn    putDelegate
	DeleteFn deleteDelegate
}

func (*MockStorage) Delete

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

func (*MockStorage) Get

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

func (*MockStorage) Has

func (m *MockStorage) Has(key []byte) (bool, error)

func (*MockStorage) Put

func (m *MockStorage) Put(key []byte, value []byte) error

Jump to

Keyboard shortcuts

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