database

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerOption added in v0.7.11

type BadgerOption struct {
	mock.Mock
}

BadgerOption is an autogenerated mock type for the BadgerOption type

func NewBadgerOption added in v0.7.11

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 added in v0.7.11

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

Execute provides a mock function with given fields: b

type CommitWorker added in v0.7.11

type CommitWorker struct {
	mock.Mock
}

CommitWorker is an autogenerated mock type for the CommitWorker type

func NewCommitWorker added in v0.7.11

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 added in v0.7.11

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 added in v0.7.11

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 added in v0.7.11

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