coordinator

package
v0.0.0-...-02d6beb Latest Latest
Warning

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

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

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func (*Handler) TransactionCreated

func (_m *Handler) TransactionCreated(_a0 context.Context, _a1 string, _a2 *types.TransactionIdentifier) error

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

type Helper

type Helper struct {
	mock.Mock
}

Helper is an autogenerated mock type for the Helper type

func (*Helper) AllAccounts

func (_m *Helper) AllAccounts(_a0 context.Context, _a1 database.Transaction) ([]*types.AccountIdentifier, error)

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

func (*Helper) Balance

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

func (*Helper) Broadcast

func (_m *Helper) Broadcast(_a0 context.Context, _a1 database.Transaction, _a2 string, _a3 *types.NetworkIdentifier, _a4 []*types.Operation, _a5 *types.TransactionIdentifier, _a6 string, _a7 int64) error

Broadcast provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7

func (*Helper) BroadcastAll

func (_m *Helper) BroadcastAll(_a0 context.Context) error

BroadcastAll provides a mock function with given fields: _a0

func (*Helper) Coins

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

func (*Helper) Combine

func (_m *Helper) Combine(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 string, _a3 []*types.Signature) (string, error)

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

func (*Helper) DatabaseTransaction

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

DatabaseTransaction provides a mock function with given fields: _a0

func (*Helper) Derive

func (_m *Helper) Derive(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 *types.PublicKey, _a3 map[string]interface{}) (*types.AccountIdentifier, map[string]interface{}, error)

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

func (*Helper) GetBlob

func (_m *Helper) GetBlob(ctx context.Context, dbTx database.Transaction, key string) (bool, []byte, error)

GetBlob provides a mock function with given fields: ctx, dbTx, key

func (*Helper) GetKey

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

func (*Helper) Hash

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

func (*Helper) HeadBlockExists

func (_m *Helper) HeadBlockExists(_a0 context.Context) bool

HeadBlockExists provides a mock function with given fields: _a0

func (*Helper) LockedAccounts

func (_m *Helper) LockedAccounts(_a0 context.Context, _a1 database.Transaction) ([]*types.AccountIdentifier, error)

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

func (*Helper) Metadata

func (_m *Helper) Metadata(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 map[string]interface{}, _a3 []*types.PublicKey) (map[string]interface{}, []*types.Amount, error)

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

func (*Helper) Parse

func (_m *Helper) Parse(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 bool, _a3 string) ([]*types.Operation, []*types.AccountIdentifier, map[string]interface{}, error)

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

func (*Helper) Payloads

func (_m *Helper) Payloads(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 []*types.Operation, _a3 map[string]interface{}, _a4 []*types.PublicKey) (string, []*types.SigningPayload, error)

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

func (*Helper) Preprocess

func (_m *Helper) Preprocess(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 []*types.Operation, _a3 map[string]interface{}) (map[string]interface{}, []*types.AccountIdentifier, error)

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

func (*Helper) SetBlob

func (_m *Helper) SetBlob(ctx context.Context, dbTx database.Transaction, key string, value []byte) error

SetBlob provides a mock function with given fields: ctx, dbTx, key, value

func (*Helper) Sign

func (_m *Helper) Sign(_a0 context.Context, _a1 []*types.SigningPayload) ([]*types.Signature, error)

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

func (*Helper) StoreKey

func (_m *Helper) StoreKey(_a0 context.Context, _a1 database.Transaction, _a2 *types.AccountIdentifier, _a3 *keys.KeyPair) error

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

type JobStorage

type JobStorage struct {
	mock.Mock
}

JobStorage is an autogenerated mock type for the JobStorage type

func (*JobStorage) Broadcasting

func (_m *JobStorage) Broadcasting(_a0 context.Context, _a1 database.Transaction) ([]*job.Job, error)

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

func (*JobStorage) Get

func (_m *JobStorage) Get(_a0 context.Context, _a1 database.Transaction, _a2 string) (*job.Job, error)

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

func (*JobStorage) Processing

func (_m *JobStorage) Processing(_a0 context.Context, _a1 database.Transaction, _a2 string) ([]*job.Job, error)

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

func (*JobStorage) Ready

func (_m *JobStorage) Ready(_a0 context.Context, _a1 database.Transaction) ([]*job.Job, error)

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

func (*JobStorage) Update

func (_m *JobStorage) Update(_a0 context.Context, _a1 database.Transaction, _a2 *job.Job) (string, error)

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

Jump to

Keyboard shortcuts

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