@@ -81,29 +81,34 @@ func consumeFn(message kafka.Message) error {
81
81
82
82
## Configurations
83
83
84
- | config | description | default |
85
- | ------------------------------------| ---------------------------------------------------------------------------------------------------------------------------------------| ------------------|
86
- | ` reader ` | [ Describes all segmentio kafka reader configurations
] ( https://pkg.go.dev/github.com/segmentio/[email protected] #ReaderConfig ) | |
87
- | ` consumeFn ` | Kafka consumer function, if retry enabled it, is also used to consume retriable messages | |
88
- | ` logLevel ` | Describes log level; valid options are ` debug ` , ` info ` , ` warn ` , and ` error ` | info |
89
- | ` concurrency ` | Number of goroutines used at listeners | runtime.NumCPU() |
90
- | ` retryEnabled ` | Retry/Exception consumer is working or not | false |
91
- | ` rack ` | [ see doc] ( https://pkg.go.dev/github.com/segmentio/kafka-go#RackAffinityGroupBalancer ) | |
92
- | ` retryConfiguration.startTimeCron ` | Cron expression when retry consumer ([ kafka-cronsumer] ( https://github.com/Trendyol/kafka-cronsumer#configurations ) ) starts to work at | |
93
- | ` retryConfiguration.workDuration ` | Work duration exception consumer actively consuming messages | |
94
- | ` retryConfiguration.topic ` | Retry/Exception topic names | |
95
- | ` retryConfiguration.brokers ` | Retry topic brokers urls | |
96
- | ` retryConfiguration.maxRetry ` | Maximum retry value for attempting to retry a message | 3 |
97
- | ` tls.rootCAPath ` | [ see doc] ( https://pkg.go.dev/crypto/tls#Config.RootCAs ) | "" |
98
- | ` tls.intermediateCAPath ` | Same with rootCA, if you want to specify two rootca you can use it with rootCAPath | "" |
99
- | ` sasl.authType ` | ` SCRAM ` or ` PLAIN ` | |
100
- | ` sasl.username ` | SCRAM OR PLAIN username | |
101
- | ` sasl.password ` | SCRAM OR PLAIN password | |
102
- | ` logger ` | If you want to custom logger | info |
103
- | ` apiEnabled ` | Enabled metrics | false |
104
- | ` apiConfiguration.port ` | Set API port | 8090 |
105
- | ` apiConfiguration.healtCheckPath ` | Set Health check path | healthcheck |
106
- | ` metricConfiguration.path ` | Set metric endpoint path | /metrics |
84
+ | config | description | default |
85
+ | ---------------------------------------------| ---------------------------------------------------------------------------------------------------------------------------------------| ------------------|
86
+ | ` reader ` | [ Describes all segmentio kafka reader configurations
] ( https://pkg.go.dev/github.com/segmentio/[email protected] #ReaderConfig ) | |
87
+ | ` consumeFn ` | Kafka consumer function, if retry enabled it, is also used to consume retriable messages | |
88
+ | ` logLevel ` | Describes log level; valid options are ` debug ` , ` info ` , ` warn ` , and ` error ` | info |
89
+ | ` concurrency ` | Number of goroutines used at listeners | runtime.NumCPU() |
90
+ | ` retryEnabled ` | Retry/Exception consumer is working or not | false |
91
+ | ` rack ` | [ see doc] ( https://pkg.go.dev/github.com/segmentio/kafka-go#RackAffinityGroupBalancer ) | |
92
+ | ` retryConfiguration.startTimeCron ` | Cron expression when retry consumer ([ kafka-cronsumer] ( https://github.com/Trendyol/kafka-cronsumer#configurations ) ) starts to work at | |
93
+ | ` retryConfiguration.workDuration ` | Work duration exception consumer actively consuming messages | |
94
+ | ` retryConfiguration.topic ` | Retry/Exception topic names | |
95
+ | ` retryConfiguration.brokers ` | Retry topic brokers urls | |
96
+ | ` retryConfiguration.maxRetry ` | Maximum retry value for attempting to retry a message | 3 |
97
+ | ` retryConfiguration.tls.rootCAPath ` | [ see doc] ( https://pkg.go.dev/crypto/tls#Config.RootCAs ) | "" |
98
+ | ` retryConfiguration.tls.intermediateCAPath ` | Same with rootCA, if you want to specify two rootca you can use it with rootCAPath | "" |
99
+ | ` retryConfiguration.sasl.authType ` | ` SCRAM ` or ` PLAIN ` | |
100
+ | ` retryConfiguration.sasl.username ` | SCRAM OR PLAIN username | |
101
+ | ` retryConfiguration.sasl.password ` | SCRAM OR PLAIN password | |
102
+ | ` tls.rootCAPath ` | [ see doc] ( https://pkg.go.dev/crypto/tls#Config.RootCAs ) | "" |
103
+ | ` tls.intermediateCAPath ` | Same with rootCA, if you want to specify two rootca you can use it with rootCAPath | "" |
104
+ | ` sasl.authType ` | ` SCRAM ` or ` PLAIN ` | |
105
+ | ` sasl.username ` | SCRAM OR PLAIN username | |
106
+ | ` sasl.password ` | SCRAM OR PLAIN password | |
107
+ | ` logger ` | If you want to custom logger | info |
108
+ | ` apiEnabled ` | Enabled metrics | false |
109
+ | ` apiConfiguration.port ` | Set API port | 8090 |
110
+ | ` apiConfiguration.healtCheckPath ` | Set Health check path | healthcheck |
111
+ | ` metricConfiguration.path ` | Set metric endpoint path | /metrics |
107
112
108
113
## Monitoring
109
114
0 commit comments