coordinator

package
v0.6.65 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 6 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 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

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

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) storage.DatabaseTransaction

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) 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 storage.DatabaseTransaction) ([]*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) 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

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 storage.DatabaseTransaction) ([]*job.Job, error)

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

func (*JobStorage) Get

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

func (*JobStorage) Processing

func (_m *JobStorage) Processing(_a0 context.Context, _a1 storage.DatabaseTransaction, _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 storage.DatabaseTransaction) ([]*job.Job, error)

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

func (*JobStorage) Update

func (_m *JobStorage) Update(_a0 context.Context, _a1 storage.DatabaseTransaction, _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