Documentation ¶
Index ¶
- type Relayer
- func (_m *Relayer) Close() error
- func (_m *Relayer) EXPECT() *Relayer_Expecter
- func (_m *Relayer) GetChainStatus(ctx context.Context) (types.ChainStatus, error)
- func (_m *Relayer) HealthReport() map[string]error
- func (_m *Relayer) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]types.NodeStatus, string, int, error)
- func (_m *Relayer) Name() string
- func (_m *Relayer) NewChainWriter(ctx context.Context, chainWriterConfig []byte) (types.ChainWriter, error)
- func (_m *Relayer) NewConfigProvider(_a0 context.Context, _a1 types.RelayArgs) (types.ConfigProvider, error)
- func (_m *Relayer) NewContractReader(ctx context.Context, contractReaderConfig []byte) (types.ChainReader, error)
- func (_m *Relayer) NewLLOProvider(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs) (types.LLOProvider, error)
- func (_m *Relayer) NewPluginProvider(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs) (types.PluginProvider, error)
- func (_m *Relayer) Ready() error
- func (_m *Relayer) Start(_a0 context.Context) error
- func (_m *Relayer) Transact(ctx context.Context, from string, to string, amount *big.Int, ...) error
- type Relayer_Close_Call
- type Relayer_Expecter
- func (_e *Relayer_Expecter) Close() *Relayer_Close_Call
- func (_e *Relayer_Expecter) GetChainStatus(ctx interface{}) *Relayer_GetChainStatus_Call
- func (_e *Relayer_Expecter) HealthReport() *Relayer_HealthReport_Call
- func (_e *Relayer_Expecter) ListNodeStatuses(ctx interface{}, pageSize interface{}, pageToken interface{}) *Relayer_ListNodeStatuses_Call
- func (_e *Relayer_Expecter) Name() *Relayer_Name_Call
- func (_e *Relayer_Expecter) NewChainWriter(ctx interface{}, chainWriterConfig interface{}) *Relayer_NewChainWriter_Call
- func (_e *Relayer_Expecter) NewConfigProvider(_a0 interface{}, _a1 interface{}) *Relayer_NewConfigProvider_Call
- func (_e *Relayer_Expecter) NewContractReader(ctx interface{}, contractReaderConfig interface{}) *Relayer_NewContractReader_Call
- func (_e *Relayer_Expecter) NewLLOProvider(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Relayer_NewLLOProvider_Call
- func (_e *Relayer_Expecter) NewPluginProvider(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Relayer_NewPluginProvider_Call
- func (_e *Relayer_Expecter) Ready() *Relayer_Ready_Call
- func (_e *Relayer_Expecter) Start(_a0 interface{}) *Relayer_Start_Call
- func (_e *Relayer_Expecter) Transact(ctx interface{}, from interface{}, to interface{}, amount interface{}, ...) *Relayer_Transact_Call
- type Relayer_GetChainStatus_Call
- func (_c *Relayer_GetChainStatus_Call) Return(_a0 types.ChainStatus, _a1 error) *Relayer_GetChainStatus_Call
- func (_c *Relayer_GetChainStatus_Call) Run(run func(ctx context.Context)) *Relayer_GetChainStatus_Call
- func (_c *Relayer_GetChainStatus_Call) RunAndReturn(run func(context.Context) (types.ChainStatus, error)) *Relayer_GetChainStatus_Call
- type Relayer_HealthReport_Call
- type Relayer_ListNodeStatuses_Call
- func (_c *Relayer_ListNodeStatuses_Call) Return(stats []types.NodeStatus, nextPageToken string, total int, err error) *Relayer_ListNodeStatuses_Call
- func (_c *Relayer_ListNodeStatuses_Call) Run(run func(ctx context.Context, pageSize int32, pageToken string)) *Relayer_ListNodeStatuses_Call
- func (_c *Relayer_ListNodeStatuses_Call) RunAndReturn(...) *Relayer_ListNodeStatuses_Call
- type Relayer_Name_Call
- type Relayer_NewChainWriter_Call
- func (_c *Relayer_NewChainWriter_Call) Return(_a0 types.ChainWriter, _a1 error) *Relayer_NewChainWriter_Call
- func (_c *Relayer_NewChainWriter_Call) Run(run func(ctx context.Context, chainWriterConfig []byte)) *Relayer_NewChainWriter_Call
- func (_c *Relayer_NewChainWriter_Call) RunAndReturn(run func(context.Context, []byte) (types.ChainWriter, error)) *Relayer_NewChainWriter_Call
- type Relayer_NewConfigProvider_Call
- func (_c *Relayer_NewConfigProvider_Call) Return(_a0 types.ConfigProvider, _a1 error) *Relayer_NewConfigProvider_Call
- func (_c *Relayer_NewConfigProvider_Call) Run(run func(_a0 context.Context, _a1 types.RelayArgs)) *Relayer_NewConfigProvider_Call
- func (_c *Relayer_NewConfigProvider_Call) RunAndReturn(run func(context.Context, types.RelayArgs) (types.ConfigProvider, error)) *Relayer_NewConfigProvider_Call
- type Relayer_NewContractReader_Call
- func (_c *Relayer_NewContractReader_Call) Return(_a0 types.ChainReader, _a1 error) *Relayer_NewContractReader_Call
- func (_c *Relayer_NewContractReader_Call) Run(run func(ctx context.Context, contractReaderConfig []byte)) *Relayer_NewContractReader_Call
- func (_c *Relayer_NewContractReader_Call) RunAndReturn(run func(context.Context, []byte) (types.ChainReader, error)) *Relayer_NewContractReader_Call
- type Relayer_NewLLOProvider_Call
- func (_c *Relayer_NewLLOProvider_Call) Return(_a0 types.LLOProvider, _a1 error) *Relayer_NewLLOProvider_Call
- func (_c *Relayer_NewLLOProvider_Call) Run(run func(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs)) *Relayer_NewLLOProvider_Call
- func (_c *Relayer_NewLLOProvider_Call) RunAndReturn(...) *Relayer_NewLLOProvider_Call
- type Relayer_NewPluginProvider_Call
- func (_c *Relayer_NewPluginProvider_Call) Return(_a0 types.PluginProvider, _a1 error) *Relayer_NewPluginProvider_Call
- func (_c *Relayer_NewPluginProvider_Call) Run(run func(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs)) *Relayer_NewPluginProvider_Call
- func (_c *Relayer_NewPluginProvider_Call) RunAndReturn(...) *Relayer_NewPluginProvider_Call
- type Relayer_Ready_Call
- type Relayer_Start_Call
- type Relayer_Transact_Call
- func (_c *Relayer_Transact_Call) Return(_a0 error) *Relayer_Transact_Call
- func (_c *Relayer_Transact_Call) Run(run func(ctx context.Context, from string, to string, amount *big.Int, ...)) *Relayer_Transact_Call
- func (_c *Relayer_Transact_Call) RunAndReturn(run func(context.Context, string, string, *big.Int, bool) error) *Relayer_Transact_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relayer ¶
Relayer is an autogenerated mock type for the Relayer type
func NewRelayer ¶
NewRelayer creates a new instance of Relayer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Relayer) EXPECT ¶
func (_m *Relayer) EXPECT() *Relayer_Expecter
func (*Relayer) GetChainStatus ¶
GetChainStatus provides a mock function with given fields: ctx
func (*Relayer) HealthReport ¶
HealthReport provides a mock function with given fields:
func (*Relayer) ListNodeStatuses ¶
func (_m *Relayer) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]types.NodeStatus, string, int, error)
ListNodeStatuses provides a mock function with given fields: ctx, pageSize, pageToken
func (*Relayer) NewChainWriter ¶
func (_m *Relayer) NewChainWriter(ctx context.Context, chainWriterConfig []byte) (types.ChainWriter, error)
NewChainWriter provides a mock function with given fields: ctx, chainWriterConfig
func (*Relayer) NewConfigProvider ¶
func (_m *Relayer) NewConfigProvider(_a0 context.Context, _a1 types.RelayArgs) (types.ConfigProvider, error)
NewConfigProvider provides a mock function with given fields: _a0, _a1
func (*Relayer) NewContractReader ¶
func (_m *Relayer) NewContractReader(ctx context.Context, contractReaderConfig []byte) (types.ChainReader, error)
NewContractReader provides a mock function with given fields: ctx, contractReaderConfig
func (*Relayer) NewLLOProvider ¶
func (_m *Relayer) NewLLOProvider(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs) (types.LLOProvider, error)
NewLLOProvider provides a mock function with given fields: _a0, _a1, _a2
func (*Relayer) NewPluginProvider ¶
func (_m *Relayer) NewPluginProvider(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs) (types.PluginProvider, error)
NewPluginProvider provides a mock function with given fields: _a0, _a1, _a2
type Relayer_Close_Call ¶
Relayer_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Relayer_Close_Call) Return ¶
func (_c *Relayer_Close_Call) Return(_a0 error) *Relayer_Close_Call
func (*Relayer_Close_Call) Run ¶
func (_c *Relayer_Close_Call) Run(run func()) *Relayer_Close_Call
func (*Relayer_Close_Call) RunAndReturn ¶
func (_c *Relayer_Close_Call) RunAndReturn(run func() error) *Relayer_Close_Call
type Relayer_Expecter ¶
type Relayer_Expecter struct {
// contains filtered or unexported fields
}
func (*Relayer_Expecter) Close ¶
func (_e *Relayer_Expecter) Close() *Relayer_Close_Call
Close is a helper method to define mock.On call
func (*Relayer_Expecter) GetChainStatus ¶
func (_e *Relayer_Expecter) GetChainStatus(ctx interface{}) *Relayer_GetChainStatus_Call
GetChainStatus is a helper method to define mock.On call
- ctx context.Context
func (*Relayer_Expecter) HealthReport ¶
func (_e *Relayer_Expecter) HealthReport() *Relayer_HealthReport_Call
HealthReport is a helper method to define mock.On call
func (*Relayer_Expecter) ListNodeStatuses ¶
func (_e *Relayer_Expecter) ListNodeStatuses(ctx interface{}, pageSize interface{}, pageToken interface{}) *Relayer_ListNodeStatuses_Call
ListNodeStatuses is a helper method to define mock.On call
- ctx context.Context
- pageSize int32
- pageToken string
func (*Relayer_Expecter) Name ¶
func (_e *Relayer_Expecter) Name() *Relayer_Name_Call
Name is a helper method to define mock.On call
func (*Relayer_Expecter) NewChainWriter ¶
func (_e *Relayer_Expecter) NewChainWriter(ctx interface{}, chainWriterConfig interface{}) *Relayer_NewChainWriter_Call
NewChainWriter is a helper method to define mock.On call
- ctx context.Context
- chainWriterConfig []byte
func (*Relayer_Expecter) NewConfigProvider ¶
func (_e *Relayer_Expecter) NewConfigProvider(_a0 interface{}, _a1 interface{}) *Relayer_NewConfigProvider_Call
NewConfigProvider is a helper method to define mock.On call
- _a0 context.Context
- _a1 types.RelayArgs
func (*Relayer_Expecter) NewContractReader ¶
func (_e *Relayer_Expecter) NewContractReader(ctx interface{}, contractReaderConfig interface{}) *Relayer_NewContractReader_Call
NewContractReader is a helper method to define mock.On call
- ctx context.Context
- contractReaderConfig []byte
func (*Relayer_Expecter) NewLLOProvider ¶
func (_e *Relayer_Expecter) NewLLOProvider(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Relayer_NewLLOProvider_Call
NewLLOProvider is a helper method to define mock.On call
- _a0 context.Context
- _a1 types.RelayArgs
- _a2 types.PluginArgs
func (*Relayer_Expecter) NewPluginProvider ¶
func (_e *Relayer_Expecter) NewPluginProvider(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Relayer_NewPluginProvider_Call
NewPluginProvider is a helper method to define mock.On call
- _a0 context.Context
- _a1 types.RelayArgs
- _a2 types.PluginArgs
func (*Relayer_Expecter) Ready ¶
func (_e *Relayer_Expecter) Ready() *Relayer_Ready_Call
Ready is a helper method to define mock.On call
func (*Relayer_Expecter) Start ¶
func (_e *Relayer_Expecter) Start(_a0 interface{}) *Relayer_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
func (*Relayer_Expecter) Transact ¶
func (_e *Relayer_Expecter) Transact(ctx interface{}, from interface{}, to interface{}, amount interface{}, balanceCheck interface{}) *Relayer_Transact_Call
Transact is a helper method to define mock.On call
- ctx context.Context
- from string
- to string
- amount *big.Int
- balanceCheck bool
type Relayer_GetChainStatus_Call ¶
Relayer_GetChainStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChainStatus'
func (*Relayer_GetChainStatus_Call) Return ¶
func (_c *Relayer_GetChainStatus_Call) Return(_a0 types.ChainStatus, _a1 error) *Relayer_GetChainStatus_Call
func (*Relayer_GetChainStatus_Call) Run ¶
func (_c *Relayer_GetChainStatus_Call) Run(run func(ctx context.Context)) *Relayer_GetChainStatus_Call
func (*Relayer_GetChainStatus_Call) RunAndReturn ¶
func (_c *Relayer_GetChainStatus_Call) RunAndReturn(run func(context.Context) (types.ChainStatus, error)) *Relayer_GetChainStatus_Call
type Relayer_HealthReport_Call ¶
Relayer_HealthReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthReport'
func (*Relayer_HealthReport_Call) Return ¶
func (_c *Relayer_HealthReport_Call) Return(_a0 map[string]error) *Relayer_HealthReport_Call
func (*Relayer_HealthReport_Call) Run ¶
func (_c *Relayer_HealthReport_Call) Run(run func()) *Relayer_HealthReport_Call
func (*Relayer_HealthReport_Call) RunAndReturn ¶
func (_c *Relayer_HealthReport_Call) RunAndReturn(run func() map[string]error) *Relayer_HealthReport_Call
type Relayer_ListNodeStatuses_Call ¶
Relayer_ListNodeStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNodeStatuses'
func (*Relayer_ListNodeStatuses_Call) Return ¶
func (_c *Relayer_ListNodeStatuses_Call) Return(stats []types.NodeStatus, nextPageToken string, total int, err error) *Relayer_ListNodeStatuses_Call
func (*Relayer_ListNodeStatuses_Call) Run ¶
func (_c *Relayer_ListNodeStatuses_Call) Run(run func(ctx context.Context, pageSize int32, pageToken string)) *Relayer_ListNodeStatuses_Call
func (*Relayer_ListNodeStatuses_Call) RunAndReturn ¶
func (_c *Relayer_ListNodeStatuses_Call) RunAndReturn(run func(context.Context, int32, string) ([]types.NodeStatus, string, int, error)) *Relayer_ListNodeStatuses_Call
type Relayer_Name_Call ¶
Relayer_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Relayer_Name_Call) Return ¶
func (_c *Relayer_Name_Call) Return(_a0 string) *Relayer_Name_Call
func (*Relayer_Name_Call) Run ¶
func (_c *Relayer_Name_Call) Run(run func()) *Relayer_Name_Call
func (*Relayer_Name_Call) RunAndReturn ¶
func (_c *Relayer_Name_Call) RunAndReturn(run func() string) *Relayer_Name_Call
type Relayer_NewChainWriter_Call ¶
Relayer_NewChainWriter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewChainWriter'
func (*Relayer_NewChainWriter_Call) Return ¶
func (_c *Relayer_NewChainWriter_Call) Return(_a0 types.ChainWriter, _a1 error) *Relayer_NewChainWriter_Call
func (*Relayer_NewChainWriter_Call) Run ¶
func (_c *Relayer_NewChainWriter_Call) Run(run func(ctx context.Context, chainWriterConfig []byte)) *Relayer_NewChainWriter_Call
func (*Relayer_NewChainWriter_Call) RunAndReturn ¶
func (_c *Relayer_NewChainWriter_Call) RunAndReturn(run func(context.Context, []byte) (types.ChainWriter, error)) *Relayer_NewChainWriter_Call
type Relayer_NewConfigProvider_Call ¶
Relayer_NewConfigProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewConfigProvider'
func (*Relayer_NewConfigProvider_Call) Return ¶
func (_c *Relayer_NewConfigProvider_Call) Return(_a0 types.ConfigProvider, _a1 error) *Relayer_NewConfigProvider_Call
func (*Relayer_NewConfigProvider_Call) Run ¶
func (_c *Relayer_NewConfigProvider_Call) Run(run func(_a0 context.Context, _a1 types.RelayArgs)) *Relayer_NewConfigProvider_Call
func (*Relayer_NewConfigProvider_Call) RunAndReturn ¶
func (_c *Relayer_NewConfigProvider_Call) RunAndReturn(run func(context.Context, types.RelayArgs) (types.ConfigProvider, error)) *Relayer_NewConfigProvider_Call
type Relayer_NewContractReader_Call ¶
Relayer_NewContractReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewContractReader'
func (*Relayer_NewContractReader_Call) Return ¶
func (_c *Relayer_NewContractReader_Call) Return(_a0 types.ChainReader, _a1 error) *Relayer_NewContractReader_Call
func (*Relayer_NewContractReader_Call) Run ¶
func (_c *Relayer_NewContractReader_Call) Run(run func(ctx context.Context, contractReaderConfig []byte)) *Relayer_NewContractReader_Call
func (*Relayer_NewContractReader_Call) RunAndReturn ¶
func (_c *Relayer_NewContractReader_Call) RunAndReturn(run func(context.Context, []byte) (types.ChainReader, error)) *Relayer_NewContractReader_Call
type Relayer_NewLLOProvider_Call ¶
Relayer_NewLLOProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewLLOProvider'
func (*Relayer_NewLLOProvider_Call) Return ¶
func (_c *Relayer_NewLLOProvider_Call) Return(_a0 types.LLOProvider, _a1 error) *Relayer_NewLLOProvider_Call
func (*Relayer_NewLLOProvider_Call) Run ¶
func (_c *Relayer_NewLLOProvider_Call) Run(run func(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs)) *Relayer_NewLLOProvider_Call
func (*Relayer_NewLLOProvider_Call) RunAndReturn ¶
func (_c *Relayer_NewLLOProvider_Call) RunAndReturn(run func(context.Context, types.RelayArgs, types.PluginArgs) (types.LLOProvider, error)) *Relayer_NewLLOProvider_Call
type Relayer_NewPluginProvider_Call ¶
Relayer_NewPluginProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPluginProvider'
func (*Relayer_NewPluginProvider_Call) Return ¶
func (_c *Relayer_NewPluginProvider_Call) Return(_a0 types.PluginProvider, _a1 error) *Relayer_NewPluginProvider_Call
func (*Relayer_NewPluginProvider_Call) Run ¶
func (_c *Relayer_NewPluginProvider_Call) Run(run func(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs)) *Relayer_NewPluginProvider_Call
func (*Relayer_NewPluginProvider_Call) RunAndReturn ¶
func (_c *Relayer_NewPluginProvider_Call) RunAndReturn(run func(context.Context, types.RelayArgs, types.PluginArgs) (types.PluginProvider, error)) *Relayer_NewPluginProvider_Call
type Relayer_Ready_Call ¶
Relayer_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*Relayer_Ready_Call) Return ¶
func (_c *Relayer_Ready_Call) Return(_a0 error) *Relayer_Ready_Call
func (*Relayer_Ready_Call) Run ¶
func (_c *Relayer_Ready_Call) Run(run func()) *Relayer_Ready_Call
func (*Relayer_Ready_Call) RunAndReturn ¶
func (_c *Relayer_Ready_Call) RunAndReturn(run func() error) *Relayer_Ready_Call
type Relayer_Start_Call ¶
Relayer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Relayer_Start_Call) Return ¶
func (_c *Relayer_Start_Call) Return(_a0 error) *Relayer_Start_Call
func (*Relayer_Start_Call) Run ¶
func (_c *Relayer_Start_Call) Run(run func(_a0 context.Context)) *Relayer_Start_Call
func (*Relayer_Start_Call) RunAndReturn ¶
func (_c *Relayer_Start_Call) RunAndReturn(run func(context.Context) error) *Relayer_Start_Call
type Relayer_Transact_Call ¶
Relayer_Transact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transact'
func (*Relayer_Transact_Call) Return ¶
func (_c *Relayer_Transact_Call) Return(_a0 error) *Relayer_Transact_Call
func (*Relayer_Transact_Call) Run ¶
func (_c *Relayer_Transact_Call) Run(run func(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool)) *Relayer_Transact_Call
func (*Relayer_Transact_Call) RunAndReturn ¶
func (_c *Relayer_Transact_Call) RunAndReturn(run func(context.Context, string, string, *big.Int, bool) error) *Relayer_Transact_Call