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_gelf_http.go
35 lines (31 loc) · 1.55 KB
/
input_gelf_http.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 (
// InputTypeGELFHTTP is one of input types.
InputTypeGELFHTTP string = "org.graylog2.inputs.gelf.http.GELFHttpInput"
)
// NewInputGELFHTTPAttrs is the constructor of InputGELFHTTPAttrs.
func NewInputGELFHTTPAttrs() InputAttrs {
return &InputGELFHTTPAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputGELFHTTPAttrs) InputType() string {
return InputTypeGELFHTTP
}
// InputGELFHTTPAttrs represents GELF HTTP Input's attributes.
type InputGELFHTTPAttrs struct {
IdleWriterTimeOut int `json:"idle_writer_timeout,omitempty"`
RecvBufferSize int `json:"recv_buffer_size,omitempty" v-create:"required" v-update:"required"`
MaxChunkSize int `json:"max_chunk_size,omitempty"`
Port int `json:"port,omitempty" v-create:"required" v-update:"required"`
DecompressSizeLimit int `json:"decompress_size_limit,omitempty"`
TLSClientAuthCertFile string `json:"tls_client_auth_cert_file,omitempty"`
BindAddress string `json:"bind_address,omitempty" v-create:"required" v-update:"required"`
TLSCertFile string `json:"tls_cert_file,omitempty"`
TLSKeyFile string `json:"tls_key_file,omitempty"`
TLSKeyPassword string `json:"tls_key_password,omitempty"`
TLSClientAuth string `json:"tls_client_auth,omitempty"`
OverrideSource string `json:"override_source,omitempty"`
TCPKeepAlive bool `json:"tcp_keepalive"`
EnableCORS bool `json:"enable_cors"`
TLSEnable bool `json:"tls_enable"`
}