internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

A mock store for testing.

func NewMockStore

func NewMockStore() *MockStore

func (MockStore) Delete

func (s MockStore) Delete(key []byte)

func (MockStore) Get

func (s MockStore) Get(key []byte) []byte

func (MockStore) Has

func (s MockStore) Has(key []byte) bool

func (MockStore) Iterator

func (s MockStore) Iterator(start, end []byte) db.Iterator

func (MockStore) Set

func (s MockStore) Set(key []byte, val []byte)

type MockStoreItr

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

func NewMockStoreItr

func NewMockStoreItr(store map[string]([]byte)) *MockStoreItr

func (*MockStoreItr) Close

func (i *MockStoreItr) Close()

func (*MockStoreItr) Domain

func (i *MockStoreItr) Domain() ([]byte, []byte)

func (*MockStoreItr) Key

func (i *MockStoreItr) Key() []byte

func (*MockStoreItr) Next

func (i *MockStoreItr) Next()

func (*MockStoreItr) Valid

func (i *MockStoreItr) Valid() bool

func (*MockStoreItr) Value

func (i *MockStoreItr) Value() []byte

Jump to

Keyboard shortcuts

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