reconciler

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler added in v0.7.11

func NewHandler(t mockConstructorTestingTNewHandler) *Handler

NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Handler) ReconciliationExempt added in v0.5.0

func (_m *Handler) ReconciliationExempt(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, computedBalance string, liveBalance string, block *types.BlockIdentifier, exemption *types.BalanceExemption) error

ReconciliationExempt provides a mock function with given fields: ctx, reconciliationType, account, currency, computedBalance, liveBalance, block, exemption

func (*Handler) ReconciliationFailed

func (_m *Handler) ReconciliationFailed(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, computedBalance string, liveBalance string, block *types.BlockIdentifier) error

ReconciliationFailed provides a mock function with given fields: ctx, reconciliationType, account, currency, computedBalance, liveBalance, block

func (*Handler) ReconciliationSkipped added in v0.5.6

func (_m *Handler) ReconciliationSkipped(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, cause string) error

ReconciliationSkipped provides a mock function with given fields: ctx, reconciliationType, account, currency, cause

func (*Handler) ReconciliationSucceeded

func (_m *Handler) ReconciliationSucceeded(ctx context.Context, reconciliationType string, account *types.AccountIdentifier, currency *types.Currency, balance string, block *types.BlockIdentifier) error

ReconciliationSucceeded provides a mock function with given fields: ctx, reconciliationType, account, currency, balance, block

type Helper

type Helper struct {
	mock.Mock
}

Helper is an autogenerated mock type for the Helper type

func NewHelper added in v0.7.11

func NewHelper(t mockConstructorTestingTNewHelper) *Helper

NewHelper creates a new instance of Helper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Helper) CanonicalBlock added in v0.5.5

func (_m *Helper) CanonicalBlock(ctx context.Context, dbTx database.Transaction, block *types.BlockIdentifier) (bool, error)

CanonicalBlock provides a mock function with given fields: ctx, dbTx, block

func (*Helper) ComputedBalance

func (_m *Helper) ComputedBalance(ctx context.Context, dbTx database.Transaction, account *types.AccountIdentifier, currency *types.Currency, index int64) (*types.Amount, error)

ComputedBalance provides a mock function with given fields: ctx, dbTx, account, currency, index

func (*Helper) CurrentBlock

func (_m *Helper) CurrentBlock(ctx context.Context, dbTx database.Transaction) (*types.BlockIdentifier, error)

CurrentBlock provides a mock function with given fields: ctx, dbTx

func (*Helper) DatabaseTransaction added in v0.5.9

func (_m *Helper) DatabaseTransaction(ctx context.Context) database.Transaction

DatabaseTransaction provides a mock function with given fields: ctx

func (*Helper) ForceInactiveReconciliation added in v0.6.4

func (_m *Helper) ForceInactiveReconciliation(ctx context.Context, account *types.AccountIdentifier, currency *types.Currency, lastCheck *types.BlockIdentifier) bool

ForceInactiveReconciliation provides a mock function with given fields: ctx, account, currency, lastCheck

func (*Helper) IndexAtTip added in v0.5.9

func (_m *Helper) IndexAtTip(ctx context.Context, index int64) (bool, error)

IndexAtTip provides a mock function with given fields: ctx, index

func (*Helper) LiveBalance

func (_m *Helper) LiveBalance(ctx context.Context, account *types.AccountIdentifier, currency *types.Currency, index int64) (*types.Amount, *types.BlockIdentifier, error)

LiveBalance provides a mock function with given fields: ctx, account, currency, index

func (*Helper) PruneBalances added in v0.5.7

func (_m *Helper) PruneBalances(ctx context.Context, account *types.AccountIdentifier, currency *types.Currency, index int64) error

PruneBalances provides a mock function with given fields: ctx, account, currency, index

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL