mock

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumer

type MockConsumer struct {
	// contains filtered or unexported fields
}

MockConsumer is a mock of Consumer interface.

func NewMockConsumer

func NewMockConsumer(ctrl *gomock.Controller) *MockConsumer

NewMockConsumer creates a new mock instance.

func (*MockConsumer) Commit

func (m *MockConsumer) Commit(ctx context.Context) error

Commit mocks base method.

func (*MockConsumer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConsumer) Ping

func (m *MockConsumer) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockConsumer) Poll

func (m *MockConsumer) Poll(ctx context.Context) ([]*event.Event, error)

Poll mocks base method.

type MockConsumerMockRecorder

type MockConsumerMockRecorder struct {
	// contains filtered or unexported fields
}

MockConsumerMockRecorder is the mock recorder for MockConsumer.

func (*MockConsumerMockRecorder) Commit

func (mr *MockConsumerMockRecorder) Commit(ctx any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockConsumerMockRecorder) Ping

func (mr *MockConsumerMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockConsumerMockRecorder) Poll

func (mr *MockConsumerMockRecorder) Poll(ctx any) *gomock.Call

Poll indicates an expected call of Poll.

type MockPublisher

type MockPublisher struct {
	// contains filtered or unexported fields
}

MockPublisher is a mock of Publisher interface.

func NewMockPublisher

func NewMockPublisher(ctrl *gomock.Controller) *MockPublisher

NewMockPublisher creates a new mock instance.

func (*MockPublisher) Close

func (m *MockPublisher) Close() error

Close mocks base method.

func (*MockPublisher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPublisher) Ping

func (m *MockPublisher) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockPublisher) Publish

func (m *MockPublisher) Publish(ctx context.Context, arg1 *event.Event) error

Publish mocks base method.

type MockPublisherMockRecorder

type MockPublisherMockRecorder struct {
	// contains filtered or unexported fields
}

MockPublisherMockRecorder is the mock recorder for MockPublisher.

func (*MockPublisherMockRecorder) Close

func (mr *MockPublisherMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockPublisherMockRecorder) Ping

func (mr *MockPublisherMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockPublisherMockRecorder) Publish

func (mr *MockPublisherMockRecorder) Publish(ctx, arg1 any) *gomock.Call

Publish indicates an expected call of Publish.

Jump to

Keyboard shortcuts

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