integration

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaCluster

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

func StartKafkaCluster

func StartKafkaCluster(ctx context.Context, numBrokers int, options map[int][]gnomock.Option) (*KafkaCluster, error)

StartKafkaCluster starts a Kafka cluster with the prescribed number of brokers and returns it.

Note that there can be containers and networks that need to be cleaned up even if this returns an error.

func (*KafkaCluster) Cleanup

func (kc *KafkaCluster) Cleanup(ctx context.Context) error

func (*KafkaCluster) CreateTopicWithTraffic

func (kc *KafkaCluster) CreateTopicWithTraffic(topicName string, replicaAssignments [][]int) error

func (*KafkaCluster) GetBootstrapServer

func (kc *KafkaCluster) GetBootstrapServer() string

func (*KafkaCluster) GetClient

func (kc *KafkaCluster) GetClient() *kafka.Client

func (*KafkaCluster) GetNetworkID

func (kc *KafkaCluster) GetNetworkID() string

Jump to

Keyboard shortcuts

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