forked from content-services/content-sources-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
54 lines (53 loc) · 818 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package event
// The kafka configuration that is used for produce and
// consume messages
// Related with configuration that is used by the librdkafka
// library.
// See: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
type KafkaConfig struct {
Timeout int
Group struct {
Id string
}
Auto struct {
Offset struct {
Reset string
}
Commit struct {
Interval struct {
Ms int
}
}
}
Bootstrap struct {
Servers string
}
Topics []string
Sasl struct {
Username string
Password string
Mechanism string
Protocol string
}
Request struct {
Timeout struct {
Ms int
}
Required struct {
Acks int
}
}
Capath string
Message struct {
Send struct {
Max struct {
Retries int
}
}
}
Retry struct {
Backoff struct {
Ms int
}
}
}