-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
32 lines (29 loc) · 1023 Bytes
/
config.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
package thrift
import (
"github.com/elastic/beats/packetbeat/config"
"github.com/elastic/beats/packetbeat/protos"
)
type thriftConfig struct {
config.ProtocolCommon `config:",inline"`
StringMaxSize int `config:"string_max_size"`
CollectionMaxSize int `config:"collection_max_size"`
DropAfterNStructFields int `config:"drop_after_n_struct_fields"`
TransportType string `config:"transport_type"`
ProtocolType string `config:"protocol_type"`
CaptureReply bool `config:"capture_reply"`
ObfuscateStrings bool `config:"obfuscate_strings"`
IdlFiles []string `config:"idl_files"`
}
var (
defaultConfig = thriftConfig{
ProtocolCommon: config.ProtocolCommon{
TransactionTimeout: protos.DefaultTransactionExpiration,
},
StringMaxSize: 200,
CollectionMaxSize: 15,
DropAfterNStructFields: 500,
TransportType: "socket",
ProtocolType: "binary",
CaptureReply: true,
}
)