modulepackage
0.1.5
Repository: https://github.com/tmstff/kafka-testing-go.git
Documentation: pkg.go.dev
# README
kafka-testing-go
Library enabling easy testing of your applications interacting with kafka.
Uses testcontainers-go to start a docker container running zookeeper and a kafka broker and provides easy means to start, stop and interact with it.
Usage
ctx := context.Background()
kafkaURL, terminateKafka, err := kafkatesting.StartKafka(ctx)
if err != nil {
// handle error
}
// use kafkaURL to access kafka
...
// stop containers after tests are done
terminateKafka(ctx)
# Functions
inspired by https://github.com/phayes/freeport.
No description provided by the author
Get preferred outbound ip of this machine see https://stackoverflow.com/questions/23558425/how-do-i-get-the-local-ip-address-in-go.
No description provided by the author
No description provided by the author
deprecated.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author