appcat-kafka-example

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

README

AppCat Kafka Sample

This is an example application to connect to a Kafka instance. It uses client side certificates to authenticate, will create a test topic, and continuously publish to and read from this topic.

Build

You can easily build the example using make.

make build-bin

To build the docker container you can run.

CONTAINER_IMG="foo/bar:tag" make build-docker

Run

To run the example producer and consumer you need access to a Kafka instance, as well as the client certificate and key, and the CA of the Kafka instance. This information can be passed as command line flags.

./appcat-kafka-example --topic foobar --uri my-kafka.example.com:21701 --ca ca.crt --cert service.cert --key service.key   

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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