Documentation ¶
Overview ¶
Package eventstest is a generated GoMock package.
Index ¶
- func MatchEvent(key []byte, eventName string, payload interface{}) gomock.Matcher
- type MockProducer
- func (m *MockProducer) EXPECT() *MockProducerMockRecorder
- func (m *MockProducer) HandleEvents() error
- func (m *MockProducer) Send(event events.Event, topic string) error
- func (m *MockProducer) SendCtx(ctx context.Context, eventName string, event events.Event, topic string) error
- func (m *MockProducer) SendWithTrackingID(trackingID string, event events.Event, topic string) error
- func (m *MockProducer) Shutdown(ctx context.Context) error
- type MockProducerMockRecorder
- func (mr *MockProducerMockRecorder) HandleEvents() *gomock.Call
- func (mr *MockProducerMockRecorder) Send(event, topic interface{}) *gomock.Call
- func (mr *MockProducerMockRecorder) SendCtx(ctx, eventName, event, topic interface{}) *gomock.Call
- func (mr *MockProducerMockRecorder) SendWithTrackingID(trackingID, event, topic interface{}) *gomock.Call
- func (mr *MockProducerMockRecorder) Shutdown(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockProducer ¶
type MockProducer struct {
// contains filtered or unexported fields
}
MockProducer is a mock of Producer interface.
func NewMockProducer ¶
func NewMockProducer(ctrl *gomock.Controller) *MockProducer
NewMockProducer creates a new mock instance.
func (*MockProducer) EXPECT ¶
func (m *MockProducer) EXPECT() *MockProducerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProducer) HandleEvents ¶
func (m *MockProducer) HandleEvents() error
HandleEvents mocks base method.
func (*MockProducer) Send ¶
func (m *MockProducer) Send(event events.Event, topic string) error
Send mocks base method.
func (*MockProducer) SendCtx ¶
func (m *MockProducer) SendCtx(ctx context.Context, eventName string, event events.Event, topic string) error
SendCtx mocks base method.
func (*MockProducer) SendWithTrackingID ¶
func (m *MockProducer) SendWithTrackingID(trackingID string, event events.Event, topic string) error
SendWithTrackingID mocks base method.
type MockProducerMockRecorder ¶
type MockProducerMockRecorder struct {
// contains filtered or unexported fields
}
MockProducerMockRecorder is the mock recorder for MockProducer.
func (*MockProducerMockRecorder) HandleEvents ¶
func (mr *MockProducerMockRecorder) HandleEvents() *gomock.Call
HandleEvents indicates an expected call of HandleEvents.
func (*MockProducerMockRecorder) Send ¶
func (mr *MockProducerMockRecorder) Send(event, topic interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockProducerMockRecorder) SendCtx ¶
func (mr *MockProducerMockRecorder) SendCtx(ctx, eventName, event, topic interface{}) *gomock.Call
SendCtx indicates an expected call of SendCtx.
func (*MockProducerMockRecorder) SendWithTrackingID ¶
func (mr *MockProducerMockRecorder) SendWithTrackingID(trackingID, event, topic interface{}) *gomock.Call
SendWithTrackingID indicates an expected call of SendWithTrackingID.
func (*MockProducerMockRecorder) Shutdown ¶
func (mr *MockProducerMockRecorder) Shutdown(ctx interface{}) *gomock.Call
Shutdown indicates an expected call of Shutdown.