database

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerOption

type BadgerOption struct {
	mock.Mock
}

BadgerOption is an autogenerated mock type for the BadgerOption type

func NewBadgerOption

func NewBadgerOption(t mockConstructorTestingTNewBadgerOption) *BadgerOption

NewBadgerOption creates a new instance of BadgerOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BadgerOption) Execute

func (_m *BadgerOption) Execute(b *database.BadgerDatabase)

Execute provides a mock function with given fields: b

type CommitWorker

type CommitWorker struct {
	mock.Mock
}

CommitWorker is an autogenerated mock type for the CommitWorker type

func NewCommitWorker

func NewCommitWorker(t mockConstructorTestingTNewCommitWorker) *CommitWorker

NewCommitWorker creates a new instance of CommitWorker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CommitWorker) Execute

func (_m *CommitWorker) Execute(_a0 context.Context) error

Execute provides a mock function with given fields: _a0

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func NewDatabase

func NewDatabase(t mockConstructorTestingTNewDatabase) *Database

NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Database) Close

func (_m *Database) Close(_a0 context.Context) error

Close provides a mock function with given fields: _a0

func (*Database) Encoder

func (_m *Database) Encoder() *encoder.Encoder

Encoder provides a mock function with given fields:

func (*Database) ReadTransaction

func (_m *Database) ReadTransaction(_a0 context.Context) database.Transaction

ReadTransaction provides a mock function with given fields: _a0

func (*Database) Transaction

func (_m *Database) Transaction(_a0 context.Context) database.Transaction

Transaction provides a mock function with given fields: _a0

func (*Database) WriteTransaction

func (_m *Database) WriteTransaction(ctx context.Context, identifier string, priority bool) database.Transaction

WriteTransaction provides a mock function with given fields: ctx, identifier, priority

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Transaction) Commit

func (_m *Transaction) Commit(_a0 context.Context) error

Commit provides a mock function with given fields: _a0

func (*Transaction) Delete

func (_m *Transaction) Delete(_a0 context.Context, _a1 []byte) error

Delete provides a mock function with given fields: _a0, _a1

func (*Transaction) Discard

func (_m *Transaction) Discard(_a0 context.Context)

Discard provides a mock function with given fields: _a0

func (*Transaction) Get

func (_m *Transaction) Get(_a0 context.Context, _a1 []byte) (bool, []byte, error)

Get provides a mock function with given fields: _a0, _a1

func (*Transaction) Scan

func (_m *Transaction) Scan(_a0 context.Context, _a1 []byte, _a2 []byte, _a3 func([]byte, []byte) error, _a4 bool, _a5 bool) (int, error)

Scan provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*Transaction) Set

func (_m *Transaction) Set(_a0 context.Context, _a1 []byte, _a2 []byte, _a3 bool) error

Set provides a mock function with given fields: _a0, _a1, _a2, _a3

Jump to

Keyboard shortcuts

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