This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/
input_syslog_amqp.go
40 lines (36 loc) · 1.8 KB
/
input_syslog_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
39
40
package graylog
const (
// InputTypeSyslogAMQP is one of input types.
InputTypeSyslogAMQP string = "org.graylog2.inputs.syslog.amqp.SyslogAMQPInput"
)
// NewInputSyslogAMQPAttrs is the constructor of InputSyslogAMQPAttrs.
func NewInputSyslogAMQPAttrs() InputAttrs {
return &InputSyslogAMQPAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputSyslogAMQPAttrs) InputType() string {
return InputTypeSyslogAMQP
}
// InputSyslogAMQPAttrs represents SyslogAMQP Input's attributes.
type InputSyslogAMQPAttrs struct {
Heartbeat int `json:"heartbeat,omitempty"`
Prefetch int `json:"prefetch,omitempty"`
BrokerPort int `json:"broker_port,omitempty"`
ParallelQueues int `json:"parallel_queues,omitempty"`
BrokerVHost string `json:"broker_vhost,omitempty"`
BrokerUsername string `json:"broker_username,omitempty"`
BrokerPassword string `json:"broker_password,omitempty"`
Exchange string `json:"exchange,omitempty"`
OverrideSource string `json:"override_source,omitempty"`
RoutingKey string `json:"routing_key,omitempty"`
BrokerHostname string `json:"broker_hostname,omitempty"`
Queue string `json:"queue,omitempty"`
ExchangeBind bool `json:"exchange_bind,omitempty"`
ForceRDNS bool `json:"force_rdns,omitempty"`
StoreFullMessage bool `json:"store_full_message,omitempty"`
ExpandStructuredData bool `json:"expand_structured_data,omitempty"`
ThrottlingAllowed bool `json:"throttling_allowed,omitempty"`
TLS bool `json:"tls,omitempty"`
AllowOverrideDate bool `json:"allow_override_date,omitempty"`
RequeueInvalidMessages bool `json:"requeue_invalid_messages,omitempty"`
}