mocks

package
v0.0.0-...-5a87418 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory struct {
	mock.Mock
}

ClientFactory is an autogenerated mock type for the ClientFactory type

func (*ClientFactory) NewConsumer

func (_m *ClientFactory) NewConsumer(config kafka.ConfigMap) (pkgkafka.Consumer, error)

NewConsumer provides a mock function with given fields: config

func (*ClientFactory) NewProducer

func (_m *ClientFactory) NewProducer(config kafka.ConfigMap) (pkgkafka.Producer, error)

NewProducer provides a mock function with given fields: config

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func (*Consumer) Close

func (_m *Consumer) Close() error

Close provides a mock function with given fields:

func (*Consumer) Commit

Commit provides a mock function with given fields:

func (*Consumer) CommitOffsets

CommitOffsets provides a mock function with given fields: offsets

func (*Consumer) ReadMessage

func (_m *Consumer) ReadMessage(timeout time.Duration) (*confluent_kafka_gokafka.Message, error)

ReadMessage provides a mock function with given fields: timeout

func (*Consumer) Subscribe

func (_m *Consumer) Subscribe(topic string, rebalanceCb confluent_kafka_gokafka.RebalanceCb) error

Subscribe provides a mock function with given fields: topic, rebalanceCb

type Producer

type Producer struct {
	mock.Mock
}

Producer is an autogenerated mock type for the Producer type

func (*Producer) Close

func (_m *Producer) Close()

Close provides a mock function with given fields:

func (*Producer) Flush

func (_m *Producer) Flush(timoutMs int) int

Flush provides a mock function with given fields: timoutMs

func (*Producer) Produce

func (_m *Producer) Produce(msg *confluent_kafka_gokafka.Message, deliveryChan chan confluent_kafka_gokafka.Event) error

Produce provides a mock function with given fields: msg, deliveryChan

Jump to

Keyboard shortcuts

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