This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/
input_syslog_udp.go
36 lines (32 loc) · 1.67 KB
/
input_syslog_udp.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
package graylog
const (
// InputTypeSyslogUDP is one of input types.
InputTypeSyslogUDP string = "org.graylog2.inputs.syslog.udp.SyslogUDPInput"
)
// NewInputSyslogUDPAttrs is the constructor of InputSyslogUDPAttrs.
func NewInputSyslogUDPAttrs() InputAttrs {
return &InputSyslogUDPAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputSyslogUDPAttrs) InputType() string {
return InputTypeSyslogUDP
}
// InputSyslogUDPAttrs represents SyslogUDP Input's attributes.
type InputSyslogUDPAttrs struct {
BindAddress string `json:"bind_address,omitempty" v-create:"required" v-update:"required"`
Port int `json:"port,omitempty" v-create:"required" v-update:"required"`
RecvBufferSize int `json:"recv_buffer_size,omitempty" v-create:"required" v-update:"required"`
TCPKeepAlive bool `json:"tcp_keepalive,omitempty"`
TLSEnable bool `json:"tls_enable,omitempty"`
ThrottlingAllowed bool `json:"throttling_allowed,omitempty"`
EnableCORS bool `json:"enable_cors,omitempty"`
UseNullDelimiter bool `json:"use_null_delimiter,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"`
AllowOverrideDate bool `json:"allow_override_date,omitempty"`
RequeueInvalidMessages bool `json:"requeue_invalid_messages,omitempty"`
UseFullNames bool `json:"use_full_names,omitempty"`
TLS bool `json:"tls,omitempty"`
}