This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
input_cef_amqp.go
38 lines (34 loc) · 1.56 KB
/
input_cef_amqp.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
package graylog
const (
// InputTypeCEFAMQP is one of input types.
InputTypeCEFAMQP string = "org.graylog.plugins.cef.input.CEFAmqpInput"
)
// NewInputCEFAMQPAttrs is the constructor of InputCEFAMQPAttrs.
func NewInputCEFAMQPAttrs() InputAttrs {
return &InputCEFAMQPAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputCEFAMQPAttrs) InputType() string {
return InputTypeCEFAMQP
}
// InputCEFAMQPAttrs represents CEF AMQP Input's attributes.
type InputCEFAMQPAttrs struct {
Exchange string `json:"exchange,omitempty"`
Timezone string `json:"timezone,omitempty"`
BrokerPassword string `json:"broker_password,omitempty"`
Locale string `json:"locale,omitempty"`
BrokerHostname string `json:"broker_hostname,omitempty"`
Queue string `json:"queue,omitempty"`
BrokerVHost string `json:"broker_vhost,omitempty"`
BrokerUsername string `json:"broker_username,omitempty"`
RoutingKey string `json:"routing_key,omitempty"`
Heartbeat int `json:"heartbeat,omitempty"`
ParallelQueues int `json:"parallel_queues,omitempty"`
Prefetch int `json:"prefetch,omitempty"`
BrokerPort int `json:"broker_port,omitempty"`
ExchangeBind bool `json:"exchange_bind"`
RequeueInvalidMessages bool `json:"requeue_invalid_messages"`
UseFullNames bool `json:"use_full_names"`
TLS bool `json:"tls"`
ThrottlingAllowed bool `json:"throttling_allowed"`
}