Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) CreateForwarder(ctx context.Context, addr common.Address, evmChainId big.Big) (forwarders.Forwarder, error)
- func (_m *ORM) DeleteForwarder(ctx context.Context, id int64, ...) error
- func (_m *ORM) EXPECT() *ORM_Expecter
- func (_m *ORM) FindForwarders(ctx context.Context, offset int, limit int) ([]forwarders.Forwarder, int, error)
- func (_m *ORM) FindForwardersByChain(ctx context.Context, evmChainId big.Big) ([]forwarders.Forwarder, error)
- func (_m *ORM) FindForwardersInListByChain(ctx context.Context, evmChainId big.Big, addrs []common.Address) ([]forwarders.Forwarder, error)
- type ORM_CreateForwarder_Call
- func (_c *ORM_CreateForwarder_Call) Return(fwd forwarders.Forwarder, err error) *ORM_CreateForwarder_Call
- func (_c *ORM_CreateForwarder_Call) Run(run func(ctx context.Context, addr common.Address, evmChainId big.Big)) *ORM_CreateForwarder_Call
- func (_c *ORM_CreateForwarder_Call) RunAndReturn(...) *ORM_CreateForwarder_Call
- type ORM_DeleteForwarder_Call
- type ORM_Expecter
- func (_e *ORM_Expecter) CreateForwarder(ctx interface{}, addr interface{}, evmChainId interface{}) *ORM_CreateForwarder_Call
- func (_e *ORM_Expecter) DeleteForwarder(ctx interface{}, id interface{}, cleanup interface{}) *ORM_DeleteForwarder_Call
- func (_e *ORM_Expecter) FindForwarders(ctx interface{}, offset interface{}, limit interface{}) *ORM_FindForwarders_Call
- func (_e *ORM_Expecter) FindForwardersByChain(ctx interface{}, evmChainId interface{}) *ORM_FindForwardersByChain_Call
- func (_e *ORM_Expecter) FindForwardersInListByChain(ctx interface{}, evmChainId interface{}, addrs interface{}) *ORM_FindForwardersInListByChain_Call
- type ORM_FindForwardersByChain_Call
- func (_c *ORM_FindForwardersByChain_Call) Return(_a0 []forwarders.Forwarder, _a1 error) *ORM_FindForwardersByChain_Call
- func (_c *ORM_FindForwardersByChain_Call) Run(run func(ctx context.Context, evmChainId big.Big)) *ORM_FindForwardersByChain_Call
- func (_c *ORM_FindForwardersByChain_Call) RunAndReturn(run func(context.Context, big.Big) ([]forwarders.Forwarder, error)) *ORM_FindForwardersByChain_Call
- type ORM_FindForwardersInListByChain_Call
- func (_c *ORM_FindForwardersInListByChain_Call) Return(_a0 []forwarders.Forwarder, _a1 error) *ORM_FindForwardersInListByChain_Call
- func (_c *ORM_FindForwardersInListByChain_Call) Run(run func(ctx context.Context, evmChainId big.Big, addrs []common.Address)) *ORM_FindForwardersInListByChain_Call
- func (_c *ORM_FindForwardersInListByChain_Call) RunAndReturn(...) *ORM_FindForwardersInListByChain_Call
- type ORM_FindForwarders_Call
- func (_c *ORM_FindForwarders_Call) Return(_a0 []forwarders.Forwarder, _a1 int, _a2 error) *ORM_FindForwarders_Call
- func (_c *ORM_FindForwarders_Call) Run(run func(ctx context.Context, offset int, limit int)) *ORM_FindForwarders_Call
- func (_c *ORM_FindForwarders_Call) RunAndReturn(run func(context.Context, int, int) ([]forwarders.Forwarder, int, error)) *ORM_FindForwarders_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶
NewORM creates a new instance of ORM. 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 (*ORM) CreateForwarder ¶
func (_m *ORM) CreateForwarder(ctx context.Context, addr common.Address, evmChainId big.Big) (forwarders.Forwarder, error)
CreateForwarder provides a mock function with given fields: ctx, addr, evmChainId
func (*ORM) DeleteForwarder ¶
func (_m *ORM) DeleteForwarder(ctx context.Context, id int64, cleanup func(sqlutil.DataSource, int64, common.Address) error) error
DeleteForwarder provides a mock function with given fields: ctx, id, cleanup
func (*ORM) EXPECT ¶ added in v2.15.0
func (_m *ORM) EXPECT() *ORM_Expecter
func (*ORM) FindForwarders ¶
func (_m *ORM) FindForwarders(ctx context.Context, offset int, limit int) ([]forwarders.Forwarder, int, error)
FindForwarders provides a mock function with given fields: ctx, offset, limit
func (*ORM) FindForwardersByChain ¶
func (_m *ORM) FindForwardersByChain(ctx context.Context, evmChainId big.Big) ([]forwarders.Forwarder, error)
FindForwardersByChain provides a mock function with given fields: ctx, evmChainId
type ORM_CreateForwarder_Call ¶ added in v2.15.0
ORM_CreateForwarder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateForwarder'
func (*ORM_CreateForwarder_Call) Return ¶ added in v2.15.0
func (_c *ORM_CreateForwarder_Call) Return(fwd forwarders.Forwarder, err error) *ORM_CreateForwarder_Call
func (*ORM_CreateForwarder_Call) Run ¶ added in v2.15.0
func (_c *ORM_CreateForwarder_Call) Run(run func(ctx context.Context, addr common.Address, evmChainId big.Big)) *ORM_CreateForwarder_Call
func (*ORM_CreateForwarder_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_CreateForwarder_Call) RunAndReturn(run func(context.Context, common.Address, big.Big) (forwarders.Forwarder, error)) *ORM_CreateForwarder_Call
type ORM_DeleteForwarder_Call ¶ added in v2.15.0
ORM_DeleteForwarder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteForwarder'
func (*ORM_DeleteForwarder_Call) Return ¶ added in v2.15.0
func (_c *ORM_DeleteForwarder_Call) Return(_a0 error) *ORM_DeleteForwarder_Call
func (*ORM_DeleteForwarder_Call) Run ¶ added in v2.15.0
func (_c *ORM_DeleteForwarder_Call) Run(run func(ctx context.Context, id int64, cleanup func(sqlutil.DataSource, int64, common.Address) error)) *ORM_DeleteForwarder_Call
func (*ORM_DeleteForwarder_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_DeleteForwarder_Call) RunAndReturn(run func(context.Context, int64, func(sqlutil.DataSource, int64, common.Address) error) error) *ORM_DeleteForwarder_Call
type ORM_Expecter ¶ added in v2.15.0
type ORM_Expecter struct {
// contains filtered or unexported fields
}
func (*ORM_Expecter) CreateForwarder ¶ added in v2.15.0
func (_e *ORM_Expecter) CreateForwarder(ctx interface{}, addr interface{}, evmChainId interface{}) *ORM_CreateForwarder_Call
CreateForwarder is a helper method to define mock.On call
- ctx context.Context
- addr common.Address
- evmChainId big.Big
func (*ORM_Expecter) DeleteForwarder ¶ added in v2.15.0
func (_e *ORM_Expecter) DeleteForwarder(ctx interface{}, id interface{}, cleanup interface{}) *ORM_DeleteForwarder_Call
DeleteForwarder is a helper method to define mock.On call
- ctx context.Context
- id int64
- cleanup func(sqlutil.DataSource , int64 , common.Address) error
func (*ORM_Expecter) FindForwarders ¶ added in v2.15.0
func (_e *ORM_Expecter) FindForwarders(ctx interface{}, offset interface{}, limit interface{}) *ORM_FindForwarders_Call
FindForwarders is a helper method to define mock.On call
- ctx context.Context
- offset int
- limit int
func (*ORM_Expecter) FindForwardersByChain ¶ added in v2.15.0
func (_e *ORM_Expecter) FindForwardersByChain(ctx interface{}, evmChainId interface{}) *ORM_FindForwardersByChain_Call
FindForwardersByChain is a helper method to define mock.On call
- ctx context.Context
- evmChainId big.Big
func (*ORM_Expecter) FindForwardersInListByChain ¶ added in v2.15.0
func (_e *ORM_Expecter) FindForwardersInListByChain(ctx interface{}, evmChainId interface{}, addrs interface{}) *ORM_FindForwardersInListByChain_Call
FindForwardersInListByChain is a helper method to define mock.On call
- ctx context.Context
- evmChainId big.Big
- addrs []common.Address
type ORM_FindForwardersByChain_Call ¶ added in v2.15.0
ORM_FindForwardersByChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindForwardersByChain'
func (*ORM_FindForwardersByChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_FindForwardersByChain_Call) Return(_a0 []forwarders.Forwarder, _a1 error) *ORM_FindForwardersByChain_Call
func (*ORM_FindForwardersByChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_FindForwardersByChain_Call) Run(run func(ctx context.Context, evmChainId big.Big)) *ORM_FindForwardersByChain_Call
func (*ORM_FindForwardersByChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_FindForwardersByChain_Call) RunAndReturn(run func(context.Context, big.Big) ([]forwarders.Forwarder, error)) *ORM_FindForwardersByChain_Call
type ORM_FindForwardersInListByChain_Call ¶ added in v2.15.0
ORM_FindForwardersInListByChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindForwardersInListByChain'
func (*ORM_FindForwardersInListByChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_FindForwardersInListByChain_Call) Return(_a0 []forwarders.Forwarder, _a1 error) *ORM_FindForwardersInListByChain_Call
func (*ORM_FindForwardersInListByChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_FindForwardersInListByChain_Call) Run(run func(ctx context.Context, evmChainId big.Big, addrs []common.Address)) *ORM_FindForwardersInListByChain_Call
func (*ORM_FindForwardersInListByChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_FindForwardersInListByChain_Call) RunAndReturn(run func(context.Context, big.Big, []common.Address) ([]forwarders.Forwarder, error)) *ORM_FindForwardersInListByChain_Call
type ORM_FindForwarders_Call ¶ added in v2.15.0
ORM_FindForwarders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindForwarders'
func (*ORM_FindForwarders_Call) Return ¶ added in v2.15.0
func (_c *ORM_FindForwarders_Call) Return(_a0 []forwarders.Forwarder, _a1 int, _a2 error) *ORM_FindForwarders_Call
func (*ORM_FindForwarders_Call) Run ¶ added in v2.15.0
func (_c *ORM_FindForwarders_Call) Run(run func(ctx context.Context, offset int, limit int)) *ORM_FindForwarders_Call
func (*ORM_FindForwarders_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_FindForwarders_Call) RunAndReturn(run func(context.Context, int, int) ([]forwarders.Forwarder, int, error)) *ORM_FindForwarders_Call