Documentation ¶
Index ¶
- type BadgerOption
- type CommitWorker
- type Database
- func (_m *Database) Close(_a0 context.Context) error
- func (_m *Database) Encoder() *encoder.Encoder
- func (_m *Database) ReadTransaction(_a0 context.Context) database.Transaction
- func (_m *Database) Transaction(_a0 context.Context) database.Transaction
- func (_m *Database) WriteTransaction(ctx context.Context, identifier string, priority bool) database.Transaction
- type Transaction
- func (_m *Transaction) Commit(_a0 context.Context) error
- func (_m *Transaction) Delete(_a0 context.Context, _a1 []byte) error
- func (_m *Transaction) Discard(_a0 context.Context)
- func (_m *Transaction) Get(_a0 context.Context, _a1 []byte) (bool, []byte, error)
- func (_m *Transaction) Scan(_a0 context.Context, _a1 []byte, _a2 []byte, _a3 func([]byte, []byte) error, ...) (int, error)
- func (_m *Transaction) Set(_a0 context.Context, _a1 []byte, _a2 []byte, _a3 bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerOption ¶
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 ¶
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.
type Database ¶
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) 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 ¶
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