linkeddb

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package database is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkedDB

type LinkedDB interface {
	database.KeyValueReaderWriterDeleter

	IsEmpty() (bool, error)
	HeadKey() ([]byte, error)
	Head() (key []byte, value []byte, err error)

	NewIterator() database.Iterator
	NewIteratorWithStart(start []byte) database.Iterator
}

LinkedDB provides a key value interface while allowing iteration.

func New

func New(db database.Database, cacheSize int) LinkedDB

func NewDefault

func NewDefault(db database.Database) LinkedDB

type MockLinkedDB

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

MockLinkedDB is a mock of LinkedDB interface.

func NewMockLinkedDB

func NewMockLinkedDB(ctrl *gomock.Controller) *MockLinkedDB

NewMockLinkedDB creates a new mock instance.

func (*MockLinkedDB) Delete

func (m *MockLinkedDB) Delete(arg0 []byte) error

Delete mocks base method.

func (*MockLinkedDB) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLinkedDB) Get

func (m *MockLinkedDB) Get(arg0 []byte) ([]byte, error)

Get mocks base method.

func (*MockLinkedDB) Has

func (m *MockLinkedDB) Has(arg0 []byte) (bool, error)

Has mocks base method.

func (*MockLinkedDB) Head

func (m *MockLinkedDB) Head() ([]byte, []byte, error)

Head mocks base method.

func (*MockLinkedDB) HeadKey

func (m *MockLinkedDB) HeadKey() ([]byte, error)

HeadKey mocks base method.

func (*MockLinkedDB) IsEmpty

func (m *MockLinkedDB) IsEmpty() (bool, error)

IsEmpty mocks base method.

func (*MockLinkedDB) NewIterator

func (m *MockLinkedDB) NewIterator() database.Iterator

NewIterator mocks base method.

func (*MockLinkedDB) NewIteratorWithStart

func (m *MockLinkedDB) NewIteratorWithStart(arg0 []byte) database.Iterator

NewIteratorWithStart mocks base method.

func (*MockLinkedDB) Put

func (m *MockLinkedDB) Put(arg0, arg1 []byte) error

Put mocks base method.

type MockLinkedDBMockRecorder

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

MockLinkedDBMockRecorder is the mock recorder for MockLinkedDB.

func (*MockLinkedDBMockRecorder) Delete

func (mr *MockLinkedDBMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockLinkedDBMockRecorder) Get

func (mr *MockLinkedDBMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockLinkedDBMockRecorder) Has

func (mr *MockLinkedDBMockRecorder) Has(arg0 interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockLinkedDBMockRecorder) Head

func (mr *MockLinkedDBMockRecorder) Head() *gomock.Call

Head indicates an expected call of Head.

func (*MockLinkedDBMockRecorder) HeadKey

func (mr *MockLinkedDBMockRecorder) HeadKey() *gomock.Call

HeadKey indicates an expected call of HeadKey.

func (*MockLinkedDBMockRecorder) IsEmpty

func (mr *MockLinkedDBMockRecorder) IsEmpty() *gomock.Call

IsEmpty indicates an expected call of IsEmpty.

func (*MockLinkedDBMockRecorder) NewIterator

func (mr *MockLinkedDBMockRecorder) NewIterator() *gomock.Call

NewIterator indicates an expected call of NewIterator.

func (*MockLinkedDBMockRecorder) NewIteratorWithStart

func (mr *MockLinkedDBMockRecorder) NewIteratorWithStart(arg0 interface{}) *gomock.Call

NewIteratorWithStart indicates an expected call of NewIteratorWithStart.

func (*MockLinkedDBMockRecorder) Put

func (mr *MockLinkedDBMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

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