kafkatest

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKafkaConsumer

type MockKafkaConsumer struct {
	mock.Mock
}

MockKafkaConsumer is used to mock a Kafka consumer.

func (*MockKafkaConsumer) CommitMessages

func (c *MockKafkaConsumer) CommitMessages(ctx context.Context, msgs ...kafka.Message) error

func (*MockKafkaConsumer) FetchMessage

func (c *MockKafkaConsumer) FetchMessage(ctx context.Context) (kafka.Message, error)

type MockKafkaProducer

type MockKafkaProducer struct {
	mock.Mock
}

MockKafkaProducer is used to mock a Kafka producer.

func (*MockKafkaProducer) WriteMessages

func (p *MockKafkaProducer) WriteMessages(ctx context.Context, msgs ...kafka.Message) error

Jump to

Keyboard shortcuts

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