Provide an API to upload data to a Kafka topic.
- Language: Go v1.21.4
- Web FrameWork: Gin v1.10.0
- Tool: Kafka-Go v0.4.47
copy .env.example and rename as .env
KAFKA_BROKER=localhost:9092
go get -u && go mod tidy -v
go run cmd/main.go
- POST /kafka-upload/{topic}