-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquery.go
29 lines (24 loc) · 1.42 KB
/
query.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
package option
// QueryOptions represents optional functionality for the query functions that can be enabled or disabled.
//
// The default will be for all optional functionality to be disabled.
type QueryOptions struct {
// AllowMapReferenceByIndex allow maps to be referenced by index in any token.
AllowMapReferenceByIndex bool
// AllowStringReferenceByIndex allow string characters to be referenced by index in any token.
AllowStringReferenceByIndex bool
// AllowMapReferenceByIndex allow maps to be referenced by index in range tokens.
AllowMapReferenceByIndexInRange bool
// AllowStringReferenceByIndexInRange allow string characters to be referenced by index in range tokens.
AllowStringReferenceByIndexInRange bool
// AllowMapReferenceByIndexInUnion allow maps to be referenced by index in union tokens.
AllowMapReferenceByIndexInUnion bool
// AllowStringReferenceByIndexInUnion allow string characters to be referenced by index in union tokens.
AllowStringReferenceByIndexInUnion bool
// AllowMapReferenceByIndexInSubscript allow maps to be referenced by index in subscript tokens.
AllowMapReferenceByIndexInSubscript bool
// AllowStringReferenceByIndexInSubscript allow string characters to be referenced by index in subscript tokens.
AllowStringReferenceByIndexInSubscript bool
// FailUnionOnInvalidIdentifier force union tokens to fail on missing or invalid keys or invalid index.
FailUnionOnInvalidIdentifier bool
}