-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: client id implementation for consumer and producer (#38)
* feat: client id implementation for consumer and producer * feat: update readme * feat: update example for lean implementation on examples --------- Co-authored-by: nihat.alim <[email protected]>
- Loading branch information
Showing
4 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,7 @@ func main() { | |
| config | description | default | example | | ||
|------------------------------|----------------------------------------------------------------------------------------------------|----------|--------------------------| | ||
| `logLevel` | Describes log level, valid options are `debug`, `info`, `warn`, and `error` | info | | | ||
| `consumer.clientId` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#Dialer) | | | | ||
| `consumer.cron` | Cron expression when exception consumer starts to work at | | */1 * * * * | | ||
| `consumer.duration` | Work duration exception consumer actively consuming messages | | 20s, 15m, 1h | | ||
| `consumer.topic` | Exception topic names | | exception-topic | | ||
|
@@ -120,6 +121,7 @@ func main() { | |
| `consumer.rebalanceTimeout` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#ReaderConfig.RebalanceTimeout) | 30s | | | ||
| `consumer.startOffset` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#ReaderConfig.StartOffset) | earliest | | | ||
| `consumer.retentionTime` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#ReaderConfig.RetentionTime) | 24h | | | ||
| `producer.clientId` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#Transport) | | | | ||
| `producer.batchSize` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#Writer.BatchSize) | 100 | | | ||
| `producer.batchTimeout` | [see doc](https://pkg.go.dev/github.com/segmentio/[email protected]#Writer.BatchTimeout) | 1s | | | ||
| `sasl.enabled` | It enables sasl authentication mechanism | false | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters