storage

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceStorageHandler

type BalanceStorageHandler struct {
	mock.Mock
}

BalanceStorageHandler is an autogenerated mock type for the BalanceStorageHandler type

func (*BalanceStorageHandler) BlockAdded

func (_m *BalanceStorageHandler) BlockAdded(ctx context.Context, block *types.Block, changes []*parser.BalanceChange) error

BlockAdded provides a mock function with given fields: ctx, block, changes

func (*BalanceStorageHandler) BlockRemoved

func (_m *BalanceStorageHandler) BlockRemoved(ctx context.Context, block *types.Block, changes []*parser.BalanceChange) error

BlockRemoved provides a mock function with given fields: ctx, block, changes

type BalanceStorageHelper

type BalanceStorageHelper struct {
	mock.Mock
}

BalanceStorageHelper is an autogenerated mock type for the BalanceStorageHelper type

func (*BalanceStorageHelper) AccountBalance

func (_m *BalanceStorageHelper) AccountBalance(ctx context.Context, account *types.AccountIdentifier, currency *types.Currency, block *types.BlockIdentifier) (*types.Amount, error)

AccountBalance provides a mock function with given fields: ctx, account, currency, block

func (*BalanceStorageHelper) Asserter

func (_m *BalanceStorageHelper) Asserter() *asserter.Asserter

Asserter provides a mock function with given fields:

func (*BalanceStorageHelper) BalanceExemptions

func (_m *BalanceStorageHelper) BalanceExemptions() []*types.BalanceExemption

BalanceExemptions provides a mock function with given fields:

func (*BalanceStorageHelper) ExemptFunc

func (_m *BalanceStorageHelper) ExemptFunc() parser.ExemptOperation

ExemptFunc provides a mock function with given fields:

type BlockWorker

type BlockWorker struct {
	mock.Mock
}

BlockWorker is an autogenerated mock type for the BlockWorker type

func (*BlockWorker) AddingBlock

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

func (*BlockWorker) RemovingBlock

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

type BroadcastStorageHandler

type BroadcastStorageHandler struct {
	mock.Mock
}

BroadcastStorageHandler is an autogenerated mock type for the BroadcastStorageHandler type

func (*BroadcastStorageHandler) BroadcastFailed

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

func (*BroadcastStorageHandler) TransactionConfirmed

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

func (*BroadcastStorageHandler) TransactionStale

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

type BroadcastStorageHelper

type BroadcastStorageHelper struct {
	mock.Mock
}

BroadcastStorageHelper is an autogenerated mock type for the BroadcastStorageHelper type

func (*BroadcastStorageHelper) AtTip

func (_m *BroadcastStorageHelper) AtTip(_a0 context.Context, _a1 int64) (bool, error)

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

func (*BroadcastStorageHelper) BroadcastTransaction

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

func (*BroadcastStorageHelper) CurrentBlockIdentifier

func (_m *BroadcastStorageHelper) CurrentBlockIdentifier(_a0 context.Context) (*types.BlockIdentifier, error)

CurrentBlockIdentifier provides a mock function with given fields: _a0

func (*BroadcastStorageHelper) FindTransaction

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

type CoinStorageHelper

type CoinStorageHelper struct {
	mock.Mock
}

CoinStorageHelper is an autogenerated mock type for the CoinStorageHelper type

func (*CoinStorageHelper) CurrentBlockIdentifier

func (_m *CoinStorageHelper) CurrentBlockIdentifier(_a0 context.Context, _a1 storage.DatabaseTransaction) (*types.BlockIdentifier, error)

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

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() *storage.Encoder

Encoder provides a mock function with given fields:

func (*Database) NewDatabaseTransaction

func (_m *Database) NewDatabaseTransaction(_a0 context.Context, _a1 bool) storage.DatabaseTransaction

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

type DatabaseTransaction

type DatabaseTransaction struct {
	mock.Mock
}

DatabaseTransaction is an autogenerated mock type for the DatabaseTransaction type

func (*DatabaseTransaction) Commit

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

Commit provides a mock function with given fields: _a0

func (*DatabaseTransaction) Delete

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

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

func (*DatabaseTransaction) Discard

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

Discard provides a mock function with given fields: _a0

func (*DatabaseTransaction) Get

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

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

func (*DatabaseTransaction) Scan

func (_m *DatabaseTransaction) 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 (*DatabaseTransaction) Set

func (_m *DatabaseTransaction) 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