Documentation ¶
Index ¶
- 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 Database ¶
Database is an autogenerated mock type for the Database type
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 (*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
Click to show internal directories.
Click to hide internal directories.