eventstest

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package eventstest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchEvent

func MatchEvent(key []byte, eventName string, payload interface{}) gomock.Matcher

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

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.

func (*MockProducer) Shutdown

func (m *MockProducer) Shutdown(ctx context.Context) error

Shutdown 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL