database

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 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 Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

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 (*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