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_tcp.go
35 lines (31 loc) · 1.5 KB
/
input_cef_tcp.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
package graylog
const (
// InputTypeCEFTCP is one of input types.
InputTypeCEFTCP string = "org.graylog.plugins.cef.input.CEFTCPInput"
)
// NewInputCEFTCPAttrs is the constructor of InputCEFTCPAttrs.
func NewInputCEFTCPAttrs() InputAttrs {
return &InputCEFTCPAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputCEFTCPAttrs) InputType() string {
return InputTypeCEFTCP
}
// InputCEFTCPAttrs represents CEF TCP Input's attributes.
type InputCEFTCPAttrs struct {
UseNullDelimiter bool `json:"use_null_delimiter"`
UseFullNames bool `json:"use_full_names"`
TLSEnable bool `json:"tls_enable"`
TCPKeepAlive bool `json:"tcp_keepalive"`
MaxMessageSize int `json:"max_message_size,omitempty"`
Port int `json:"port,omitempty" v-create:"required" v-update:"required"`
RecvBufferSize int `json:"recv_buffer_size,omitempty" v-create:"required" v-update:"required"`
Timezone string `json:"timezone,omitempty"`
Locale string `json:"locale,omitempty"`
BindAddress string `json:"bind_address,omitempty" v-create:"required" v-update:"required"`
TLSKeyFile string `json:"tls_key_file,omitempty"`
TLSClientAuth string `json:"tls_client_auth,omitempty"`
TLSKeyPassword string `json:"tls_key_password,omitempty"`
TLSClientAuthCertFile string `json:"tls_client_auth_cert_file,omitempty"`
TLSCertFile string `json:"tls_cert_file,omitempty"`
}