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_syslog_udp.go
36 lines (32 loc) · 1.54 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"`
TLSEnable bool `json:"tls_enable"`
ThrottlingAllowed bool `json:"throttling_allowed"`
EnableCORS bool `json:"enable_cors"`
UseNullDelimiter bool `json:"use_null_delimiter"`
ExchangeBind bool `json:"exchange_bind"`
ForceRDNS bool `json:"force_rdns"`
StoreFullMessage bool `json:"store_full_message"`
ExpandStructuredData bool `json:"expand_structured_data"`
AllowOverrideDate bool `json:"allow_override_date"`
RequeueInvalidMessages bool `json:"requeue_invalid_messages"`
UseFullNames bool `json:"use_full_names"`
TLS bool `json:"tls"`
}