Documentation ¶
Index ¶
- func CreateCluster(t testing.TB, numPartitions int32, topicName string, opts ...Opt) (*kfake.Cluster, string)
- func CreateClusterWithoutCustomConsumerGroupsSupport(t testing.TB, numPartitions int32, topicName string, opts ...Opt) (*kfake.Cluster, string)
- func CreateProduceResponseError(version int16, topic string, partition int32, err *kerr.Error) *kmsg.ProduceResponse
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster(t testing.TB, numPartitions int32, topicName string, opts ...Opt) (*kfake.Cluster, string)
CreateCluster returns a fake Kafka cluster for unit testing.
func CreateProduceResponseError ¶
func CreateProduceResponseError(version int16, topic string, partition int32, err *kerr.Error) *kmsg.ProduceResponse
CreateProduceResponseError returns a kmsg.ProduceResponse containing err for the input topic and partition.
Types ¶
Click to show internal directories.
Click to hide internal directories.