https://github.com/stackus/edat-kafka-go
Kafka (kafka-go) library for edat
https://github.com/stackus/edat-kafka-go
Last synced: 5 days ago
JSON representation
Kafka (kafka-go) library for edat
- Host: GitHub
- URL: https://github.com/stackus/edat-kafka-go
- Owner: stackus
- License: mit
- Created: 2021-06-03T01:16:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-03T01:22:55.000Z (over 4 years ago)
- Last Synced: 2024-06-20T13:42:02.350Z (over 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# edat-kafka-go - Kafka for edat
## Installation
go get -u github.com/stackus/edat-kafka-go
## Usage Example
import (
"github.com/stackus/edat-kafka-go"
"github.com/stackus/edat/msg"
)
// Create a consumer and use it in a message subscriber
consumer := edatkafkago.NewConsumer(brokers, groupID)
subscriber := msg.NewSubscriber(consumer)
// Create a producer and use it in a message publisher
producer := edatkafkago.NewProducer(brokers)
publisher := msg.NewPublisher(producer)
## Prerequisites
Go 1.15
## Features
- Message Consumer `NewConsumer(brokers, groupID, ...options)`
- Message Producer `NewProducer(brokers, ...options)`
## TODOs
- Documentation
- Tests, tests, and more tests
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
MIT