Documentation
¶
Index ¶
- type ORM
- type ORM_Expecter
- type ORM_GetSubscriptions_Call
- func (_c *ORM_GetSubscriptions_Call) Return(_a0 []subscriptions.StoredSubscription, _a1 error) *ORM_GetSubscriptions_Call
- func (_c *ORM_GetSubscriptions_Call) Run(run func(ctx context.Context, offset uint, limit uint)) *ORM_GetSubscriptions_Call
- func (_c *ORM_GetSubscriptions_Call) RunAndReturn(...) *ORM_GetSubscriptions_Call
- type ORM_UpsertSubscription_Call
- func (_c *ORM_UpsertSubscription_Call) Return(_a0 error) *ORM_UpsertSubscription_Call
- func (_c *ORM_UpsertSubscription_Call) Run(run func(ctx context.Context, subscription subscriptions.StoredSubscription)) *ORM_UpsertSubscription_Call
- func (_c *ORM_UpsertSubscription_Call) RunAndReturn(run func(context.Context, subscriptions.StoredSubscription) error) *ORM_UpsertSubscription_Call
- type OnchainSubscriptions
- type OnchainSubscriptions_Close_Call
- type OnchainSubscriptions_Expecter
- type OnchainSubscriptions_GetMaxUserBalance_Call
- func (_c *OnchainSubscriptions_GetMaxUserBalance_Call) Return(_a0 *big.Int, _a1 error) *OnchainSubscriptions_GetMaxUserBalance_Call
- func (_c *OnchainSubscriptions_GetMaxUserBalance_Call) Run(run func(_a0 common.Address)) *OnchainSubscriptions_GetMaxUserBalance_Call
- func (_c *OnchainSubscriptions_GetMaxUserBalance_Call) RunAndReturn(run func(common.Address) (*big.Int, error)) *OnchainSubscriptions_GetMaxUserBalance_Call
- type OnchainSubscriptions_Start_Call
- func (_c *OnchainSubscriptions_Start_Call) Return(_a0 error) *OnchainSubscriptions_Start_Call
- func (_c *OnchainSubscriptions_Start_Call) Run(run func(_a0 context.Context)) *OnchainSubscriptions_Start_Call
- func (_c *OnchainSubscriptions_Start_Call) RunAndReturn(run func(context.Context) error) *OnchainSubscriptions_Start_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) EXPECT ¶ added in v2.15.0
func (_m *ORM) EXPECT() *ORM_Expecter
func (*ORM) GetSubscriptions ¶
func (_m *ORM) GetSubscriptions(ctx context.Context, offset uint, limit uint) ([]subscriptions.StoredSubscription, error)
GetSubscriptions provides a mock function with given fields: ctx, offset, limit
func (*ORM) UpsertSubscription ¶
func (_m *ORM) UpsertSubscription(ctx context.Context, subscription subscriptions.StoredSubscription) error
UpsertSubscription provides a mock function with given fields: ctx, subscription
type ORM_Expecter ¶ added in v2.15.0
type ORM_Expecter struct {
// contains filtered or unexported fields
}
func (*ORM_Expecter) GetSubscriptions ¶ added in v2.15.0
func (_e *ORM_Expecter) GetSubscriptions(ctx interface{}, offset interface{}, limit interface{}) *ORM_GetSubscriptions_Call
GetSubscriptions is a helper method to define mock.On call
- ctx context.Context
- offset uint
- limit uint
func (*ORM_Expecter) UpsertSubscription ¶ added in v2.15.0
func (_e *ORM_Expecter) UpsertSubscription(ctx interface{}, subscription interface{}) *ORM_UpsertSubscription_Call
UpsertSubscription is a helper method to define mock.On call
- ctx context.Context
- subscription subscriptions.StoredSubscription
type ORM_GetSubscriptions_Call ¶ added in v2.15.0
ORM_GetSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubscriptions'
func (*ORM_GetSubscriptions_Call) Return ¶ added in v2.15.0
func (_c *ORM_GetSubscriptions_Call) Return(_a0 []subscriptions.StoredSubscription, _a1 error) *ORM_GetSubscriptions_Call
func (*ORM_GetSubscriptions_Call) Run ¶ added in v2.15.0
func (_c *ORM_GetSubscriptions_Call) Run(run func(ctx context.Context, offset uint, limit uint)) *ORM_GetSubscriptions_Call
func (*ORM_GetSubscriptions_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_GetSubscriptions_Call) RunAndReturn(run func(context.Context, uint, uint) ([]subscriptions.StoredSubscription, error)) *ORM_GetSubscriptions_Call
type ORM_UpsertSubscription_Call ¶ added in v2.15.0
ORM_UpsertSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertSubscription'
func (*ORM_UpsertSubscription_Call) Return ¶ added in v2.15.0
func (_c *ORM_UpsertSubscription_Call) Return(_a0 error) *ORM_UpsertSubscription_Call
func (*ORM_UpsertSubscription_Call) Run ¶ added in v2.15.0
func (_c *ORM_UpsertSubscription_Call) Run(run func(ctx context.Context, subscription subscriptions.StoredSubscription)) *ORM_UpsertSubscription_Call
func (*ORM_UpsertSubscription_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_UpsertSubscription_Call) RunAndReturn(run func(context.Context, subscriptions.StoredSubscription) error) *ORM_UpsertSubscription_Call
type OnchainSubscriptions ¶
OnchainSubscriptions is an autogenerated mock type for the OnchainSubscriptions type
func NewOnchainSubscriptions ¶
func NewOnchainSubscriptions(t interface { mock.TestingT Cleanup(func()) }) *OnchainSubscriptions
NewOnchainSubscriptions creates a new instance of OnchainSubscriptions. 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 (*OnchainSubscriptions) Close ¶
func (_m *OnchainSubscriptions) Close() error
Close provides a mock function with given fields:
func (*OnchainSubscriptions) EXPECT ¶ added in v2.15.0
func (_m *OnchainSubscriptions) EXPECT() *OnchainSubscriptions_Expecter
func (*OnchainSubscriptions) GetMaxUserBalance ¶
GetMaxUserBalance provides a mock function with given fields: _a0
type OnchainSubscriptions_Close_Call ¶ added in v2.15.0
OnchainSubscriptions_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*OnchainSubscriptions_Close_Call) Return ¶ added in v2.15.0
func (_c *OnchainSubscriptions_Close_Call) Return(_a0 error) *OnchainSubscriptions_Close_Call
func (*OnchainSubscriptions_Close_Call) Run ¶ added in v2.15.0
func (_c *OnchainSubscriptions_Close_Call) Run(run func()) *OnchainSubscriptions_Close_Call
func (*OnchainSubscriptions_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *OnchainSubscriptions_Close_Call) RunAndReturn(run func() error) *OnchainSubscriptions_Close_Call
type OnchainSubscriptions_Expecter ¶ added in v2.15.0
type OnchainSubscriptions_Expecter struct {
// contains filtered or unexported fields
}
func (*OnchainSubscriptions_Expecter) Close ¶ added in v2.15.0
func (_e *OnchainSubscriptions_Expecter) Close() *OnchainSubscriptions_Close_Call
Close is a helper method to define mock.On call
func (*OnchainSubscriptions_Expecter) GetMaxUserBalance ¶ added in v2.15.0
func (_e *OnchainSubscriptions_Expecter) GetMaxUserBalance(_a0 interface{}) *OnchainSubscriptions_GetMaxUserBalance_Call
GetMaxUserBalance is a helper method to define mock.On call
- _a0 common.Address
func (*OnchainSubscriptions_Expecter) Start ¶ added in v2.15.0
func (_e *OnchainSubscriptions_Expecter) Start(_a0 interface{}) *OnchainSubscriptions_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
type OnchainSubscriptions_GetMaxUserBalance_Call ¶ added in v2.15.0
OnchainSubscriptions_GetMaxUserBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxUserBalance'
func (*OnchainSubscriptions_GetMaxUserBalance_Call) Return ¶ added in v2.15.0
func (_c *OnchainSubscriptions_GetMaxUserBalance_Call) Return(_a0 *big.Int, _a1 error) *OnchainSubscriptions_GetMaxUserBalance_Call
func (*OnchainSubscriptions_GetMaxUserBalance_Call) Run ¶ added in v2.15.0
func (_c *OnchainSubscriptions_GetMaxUserBalance_Call) Run(run func(_a0 common.Address)) *OnchainSubscriptions_GetMaxUserBalance_Call
func (*OnchainSubscriptions_GetMaxUserBalance_Call) RunAndReturn ¶ added in v2.15.0
func (_c *OnchainSubscriptions_GetMaxUserBalance_Call) RunAndReturn(run func(common.Address) (*big.Int, error)) *OnchainSubscriptions_GetMaxUserBalance_Call
type OnchainSubscriptions_Start_Call ¶ added in v2.15.0
OnchainSubscriptions_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*OnchainSubscriptions_Start_Call) Return ¶ added in v2.15.0
func (_c *OnchainSubscriptions_Start_Call) Return(_a0 error) *OnchainSubscriptions_Start_Call
func (*OnchainSubscriptions_Start_Call) Run ¶ added in v2.15.0
func (_c *OnchainSubscriptions_Start_Call) Run(run func(_a0 context.Context)) *OnchainSubscriptions_Start_Call
func (*OnchainSubscriptions_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *OnchainSubscriptions_Start_Call) RunAndReturn(run func(context.Context) error) *OnchainSubscriptions_Start_Call