-
Notifications
You must be signed in to change notification settings - Fork 2
/
const.go
47 lines (41 loc) · 1.31 KB
/
const.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 trino
const (
_preparedStatementHeader = "X-Presto-Prepared-Statement"
_preparedStatementName = "_trino_go"
_xTrinoUserHeader = "X-Trino-User"
_xTrinoSourceHeader = "X-Trino-Source"
_xTrinoCatalogHeader = "X-Trino-Catalog"
_xTrinoSchemaHeader = "X-Trino-Schema"
_xTrinoSessionHeader = "X-Trino-Session"
_xPrestoUserHeader = "X-Presto-User"
_xPrestoSourceHeader = "X-Presto-Source"
_xPrestoCatalogHeader = "X-Presto-Catalog"
_xPrestoSchemaHeader = "X-Presto-Schema"
_xPrestoSessionHeader = "X-Presto-Session"
UserHeader = "User"
CallbackHeader = "Callback"
KerberosEnabledConfig = "KerberosEnabled"
_kerberosKeytabPathConfig = "KerberosKeytabPath"
_kerberosPrincipalConfig = "KerberosPrincipal"
_kerberosRealmConfig = "KerberosRealm"
_kerberosConfigPathConfig = "KerberosConfigPath"
SSLCertPathConfig = "SSLCertPath"
)
var (
vhs = map[version]map[string]string{
_trinoVersion: {
"user": _xTrinoUserHeader,
"source": _xTrinoSourceHeader,
"catalog": _xTrinoCatalogHeader,
"schema": _xTrinoSchemaHeader,
"session": _xTrinoSessionHeader,
},
_prestoVersion: {
"user": _xPrestoUserHeader,
"source": _xPrestoSourceHeader,
"catalog": _xPrestoCatalogHeader,
"schema": _xPrestoSchemaHeader,
"session": _xPrestoSessionHeader,
},
}
)