|
@@ -7,21 +7,22 @@ import (
|
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
Net struct {
|
|
|
|
|
|
|
|
|
MaxOpenRequests int
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- DialTimeout time.Duration
|
|
|
- ReadTimeout time.Duration
|
|
|
- WriteTimeout time.Duration
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ DialTimeout time.Duration
|
|
|
+ ReadTimeout time.Duration
|
|
|
+ WriteTimeout time.Duration
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
TLS struct {
|
|
|
|
|
|
|
|
@@ -36,8 +37,8 @@ type Config struct {
|
|
|
KeepAlive time.Duration
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
Metadata struct {
|
|
|
Retry struct {
|
|
|
|
|
@@ -47,8 +48,8 @@ type Config struct {
|
|
|
|
|
|
Backoff time.Duration
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
RefreshFrequency time.Duration
|
|
|
}
|
|
@@ -56,8 +57,8 @@ type Config struct {
|
|
|
|
|
|
|
|
|
Producer struct {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
MaxMessageBytes int
|
|
|
|
|
|
|
|
@@ -65,9 +66,9 @@ type Config struct {
|
|
|
RequiredAcks RequiredAcks
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
Timeout time.Duration
|
|
|
|
|
|
|
|
@@ -103,8 +104,8 @@ type Config struct {
|
|
|
|
|
|
|
|
|
Frequency time.Duration
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
MaxMessages int
|
|
|
}
|
|
@@ -120,12 +121,12 @@ type Config struct {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
Consumer struct {
|
|
|
Retry struct {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
Backoff time.Duration
|
|
|
}
|
|
|
|
|
@@ -143,26 +144,26 @@ type Config struct {
|
|
|
|
|
|
|
|
|
Default int32
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
Max int32
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
MaxWaitTime time.Duration
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
MaxProcessingTime time.Duration
|
|
|
|
|
@@ -174,15 +175,15 @@ type Config struct {
|
|
|
Errors bool
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
Offsets struct {
|
|
|
|
|
|
CommitInterval time.Duration
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
Initial int64
|
|
|
}
|
|
|
}
|