Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meitu/go-consumergroup
golang kafka consumer group
https://github.com/meitu/go-consumergroup
consumergroup golang kafka
Last synced: about 2 months ago
JSON representation
golang kafka consumer group
- Host: GitHub
- URL: https://github.com/meitu/go-consumergroup
- Owner: meitu
- License: mit
- Created: 2017-01-13T06:24:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T11:09:31.000Z (almost 5 years ago)
- Last Synced: 2024-06-18T21:39:50.390Z (7 months ago)
- Topics: consumergroup, golang, kafka
- Language: Go
- Size: 2.22 MB
- Stars: 82
- Watchers: 14
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog
- License: LICENSE
Awesome Lists containing this project
README
# go-consumergroup [![Build Status](https://travis-ci.org/meitu/go-consumergroup.svg?branch=master)](https://travis-ci.org/meitu/go-consumergroup) [![Go Report Card](https://goreportcard.com/badge/github.com/meitu/go-consumergroup)](https://goreportcard.com/report/github.com/meitu/go-consumergroup)
Go-consumergroup is a kafka consumer library written in golang with rebalance and chroot supports.
[Chinese Doc](./README.zh-CN.md)
## Requirements
* Apache Kafka 0.8.x, 0.9.x, 0.10.x, 0.11.x, 1.0.x## Dependencies
* [go-zookeeper](https://github.com/samuel/go-zookeeper)
* [sarama](https://github.com/Shopify/sarama)
* [zk_wrapper](https://github.com/meitu/zk_wrapper)## Getting started
* API documentation and examples are available via [godoc](https://godoc.org/github.com/meitu/go-consumergroup).
* The example directory contains more elaborate [example](example/example.go) applications.## User Defined Logger
```
logger := logrus.New()
cg.SetLogger(logger)
```## Run Tests
```shell
$ make test
```***NOTE:*** `docker-compse` is required to run tests