forked from suzuki-shunsuke/go-graylog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_raw_kafka.go
More file actions
28 lines (24 loc) · 1002 Bytes
/
input_raw_kafka.go
File metadata and controls
28 lines (24 loc) · 1002 Bytes
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
package graylog
const (
// InputTypeRawKafka is one of input types.
InputTypeRawKafka string = "org.graylog2.inputs.raw.kafka.RawKafkaInput"
)
// NewInputRawKafkaAttrs is the constructor of InputRawKafkaAttrs.
func NewInputRawKafkaAttrs() InputAttrs {
return &InputRawKafkaAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputRawKafkaAttrs) InputType() string {
return InputTypeRawKafka
}
// InputRawKafkaAttrs represents RawKafka Input's attributes.
type InputRawKafkaAttrs struct {
TopicFilter string `json:"topic_filter,omitempty"`
FetchWaitMax int `json:"fetch_wait_max,omitempty"`
OffsetReset string `json:"offset_reset,omitempty"`
Zookeeper string `json:"zookeeper,omitempty"`
ThrottlingAllowed bool `json:"throttling_allowed,omitempty"`
FetchMinBytes int `json:"fetch_min_bytes,omitempty"`
Threads int `json:"threads,omitempty"`
OverrideSource string `json:"override_source,omitempty"`
}