testutil

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaTestEnv

type KafkaTestEnv struct {
	ClusterID   string
	Brokers     []string
	Container   *kafka.KafkaContainer
	Producer    *kgo.Client
	Consumer    *kgo.Client
	AdminClient *kadm.Client
}

func NewKafkaTestEnv

func NewKafkaTestEnv(ctx context.Context, clusterID string, topics []string) (*KafkaTestEnv, error)

func (*KafkaTestEnv) Close

func (k *KafkaTestEnv) Close(ctx context.Context) error

func (*KafkaTestEnv) CreateTopics

func (k *KafkaTestEnv) CreateTopics(ctx context.Context, topics ...string) error

Jump to

Keyboard shortcuts

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