mock

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

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 MockAsyncProducer

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

MockAsyncProducer is a mock of AsyncProducer interface.

func NewMockAsyncProducer

func NewMockAsyncProducer(ctrl *gomock.Controller) *MockAsyncProducer

NewMockAsyncProducer creates a new mock instance.

func (*MockAsyncProducer) Close

func (m *MockAsyncProducer) Close() error

Close mocks base method.

func (*MockAsyncProducer) EXPECT

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

func (*MockAsyncProducer) Produce

func (m *MockAsyncProducer) Produce(topic string, message []byte, opts ...kafka.MessageOption)

Produce mocks base method.

func (*MockAsyncProducer) ProduceWithContext

func (m *MockAsyncProducer) ProduceWithContext(ctx context.Context, topic string, message []byte, opts ...kafka.MessageOption)

ProduceWithContext mocks base method.

type MockAsyncProducerMockRecorder

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

MockAsyncProducerMockRecorder is the mock recorder for MockAsyncProducer.

func (*MockAsyncProducerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockAsyncProducerMockRecorder) Produce

func (mr *MockAsyncProducerMockRecorder) Produce(topic, message interface{}, opts ...interface{}) *gomock.Call

Produce indicates an expected call of Produce.

func (*MockAsyncProducerMockRecorder) ProduceWithContext

func (mr *MockAsyncProducerMockRecorder) ProduceWithContext(ctx, topic, message interface{}, opts ...interface{}) *gomock.Call

ProduceWithContext indicates an expected call of ProduceWithContext.

type MockConsumerGroup

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

MockConsumerGroup is a mock of ConsumerGroup interface.

func NewMockConsumerGroup

func NewMockConsumerGroup(ctrl *gomock.Controller) *MockConsumerGroup

NewMockConsumerGroup creates a new mock instance.

func (*MockConsumerGroup) Close

func (m *MockConsumerGroup) Close() error

Close mocks base method.

func (*MockConsumerGroup) Consume

func (m *MockConsumerGroup) Consume(ctx context.Context, topic []string, handler kafka.Handler) error

Consume mocks base method.

func (*MockConsumerGroup) EXPECT

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

type MockConsumerGroupMockRecorder

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

MockConsumerGroupMockRecorder is the mock recorder for MockConsumerGroup.

func (*MockConsumerGroupMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConsumerGroupMockRecorder) Consume

func (mr *MockConsumerGroupMockRecorder) Consume(ctx, topic, handler interface{}) *gomock.Call

Consume indicates an expected call of Consume.

type MockSyncProducer

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

MockSyncProducer is a mock of SyncProducer interface.

func NewMockSyncProducer

func NewMockSyncProducer(ctrl *gomock.Controller) *MockSyncProducer

NewMockSyncProducer creates a new mock instance.

func (*MockSyncProducer) Close

func (m *MockSyncProducer) Close() error

Close mocks base method.

func (*MockSyncProducer) EXPECT

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

func (*MockSyncProducer) Produce

func (m *MockSyncProducer) Produce(topic string, message []byte, opts ...kafka.MessageOption) error

Produce mocks base method.

func (*MockSyncProducer) ProduceWithContext

func (m *MockSyncProducer) ProduceWithContext(ctx context.Context, topic string, message []byte, opts ...kafka.MessageOption) error

ProduceWithContext mocks base method.

type MockSyncProducerMockRecorder

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

MockSyncProducerMockRecorder is the mock recorder for MockSyncProducer.

func (*MockSyncProducerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockSyncProducerMockRecorder) Produce

func (mr *MockSyncProducerMockRecorder) Produce(topic, message interface{}, opts ...interface{}) *gomock.Call

Produce indicates an expected call of Produce.

func (*MockSyncProducerMockRecorder) ProduceWithContext

func (mr *MockSyncProducerMockRecorder) ProduceWithContext(ctx, topic, message interface{}, opts ...interface{}) *gomock.Call

ProduceWithContext indicates an expected call of ProduceWithContext.

Jump to

Keyboard shortcuts

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