-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.go
47 lines (44 loc) · 1.55 KB
/
options.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
37
38
39
40
41
42
43
44
45
46
47
package drill
import "time"
const drillRPCVersion int32 = 5
const clientName = "Apache Drill Golang Client"
const drillVersion = "1.17.0"
const drillMajorVersion = 1
const drillMinorVersion = 17
const drillPatchVersion = 0
const defaultHeartbeatFreq = 15 * time.Second
// Options for a Drill Connection
type Options struct {
// the default Schema to use
Schema string
// true if expected to use encryption for communication
SaslEncrypt bool
// the HOST portion to use for the spn to authenticate with, if _HOST or
// empty, will use the address of the drillbit that is connected to
ServiceHost string
// the krb service name to use for authentication
ServiceName string
// what authentication mechanism to use, currently only supports kerberos
// or no auth
Auth string
// the Drill clusters name which is used by ZooKeeper to store the endpoint
// information
ClusterName string
// use this instead of ClusterName to fully specify the Zookeeper path instead
// of using the /drill prefix
ZKPath string
// whether or not the server should support complex types such as List
SupportComplexTypes bool
// what Application Name to use for connecting to the server
ApplicationName string
// the username to authenticate as
User string
// Password to use for PLAIN auth
Passwd string
// the heartbeatfrequency to use, if nil then will use the default (15 seconds)
// set to 0 to disable it.
HeartbeatFreq *time.Duration
// UseArrow controls whether the raw data in the results is underlined by arrow
// arrays (if true) or not (if false, default)
UseArrow bool
}