Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶ added in v1.15.0
NewPublisher creates a new instance of Publisher. 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 (*Publisher) EXPECT ¶ added in v1.15.0
func (_m *Publisher) EXPECT() *Publisher_Expecter
type Publisher_Expecter ¶ added in v1.15.0
type Publisher_Expecter struct {
// contains filtered or unexported fields
}
func (*Publisher_Expecter) Publish ¶ added in v1.15.0
func (_e *Publisher_Expecter) Publish(ctx interface{}, notificationType interface{}, msg interface{}) *Publisher_Publish_Call
Publish is a helper method to define mock.On call
- ctx context.Context
- notificationType string
- msg protoiface.MessageV1
type Publisher_Publish_Call ¶ added in v1.15.0
Publisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*Publisher_Publish_Call) Return ¶ added in v1.15.0
func (_c *Publisher_Publish_Call) Return(_a0 error) *Publisher_Publish_Call
func (*Publisher_Publish_Call) Run ¶ added in v1.15.0
func (_c *Publisher_Publish_Call) Run(run func(ctx context.Context, notificationType string, msg protoiface.MessageV1)) *Publisher_Publish_Call
func (*Publisher_Publish_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Publisher_Publish_Call) RunAndReturn(run func(context.Context, string, protoiface.MessageV1) error) *Publisher_Publish_Call
type Sender ¶
Sender is an autogenerated mock type for the Sender type
func NewSender ¶ added in v1.15.0
NewSender creates a new instance of Sender. 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 (*Sender) EXPECT ¶ added in v1.15.0
func (_m *Sender) EXPECT() *Sender_Expecter
type Sender_Expecter ¶ added in v1.15.0
type Sender_Expecter struct {
// contains filtered or unexported fields
}
func (*Sender_Expecter) Send ¶ added in v1.15.0
func (_e *Sender_Expecter) Send(ctx interface{}, notificationType interface{}, _a2 interface{}) *Sender_Send_Call
Send is a helper method to define mock.On call
- ctx context.Context
- notificationType string
- _a2 event.Event
type Sender_Send_Call ¶ added in v1.15.0
Sender_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*Sender_Send_Call) Return ¶ added in v1.15.0
func (_c *Sender_Send_Call) Return(_a0 error) *Sender_Send_Call
func (*Sender_Send_Call) Run ¶ added in v1.15.0
func (_c *Sender_Send_Call) Run(run func(ctx context.Context, notificationType string, _a2 event.Event)) *Sender_Send_Call
func (*Sender_Send_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Sender_Send_Call) RunAndReturn(run func(context.Context, string, event.Event) error) *Sender_Send_Call