-
Notifications
You must be signed in to change notification settings - Fork 16
/
constants.go
45 lines (39 loc) · 1.73 KB
/
constants.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
package ravendb
const (
// Name of struct field that represents identity property
IdentityProperty = "ID"
MetadataCollection = "@collection"
MetadataProjection = "@projection"
MetadataKey = "@metadata"
MetadataID = "@id"
MetadataConflict = "@conflict"
MetadataIDProperty = "Id"
MetadataFlags = "@flags"
MetadataAttachments = "@attachments"
MetadataInddexScore = "@index-score"
MetadataLastModified = "@last-modified"
MetadataRavenGoType = "Raven-Go-Type"
MetadataChangeVector = "@change-vector"
MetadataExpires = "@expires"
MetadataAllDocumentsCollection = "@all_docs"
IndexingSideBySideIndexNamePrefix = "ReplacementOf/"
IndexingFieldNameDocumentID = "id()"
IndexingFieldNameReduceKeyHash = "hash(key())"
IndexingFieldNameReduceKeyValue = "key()"
IndexingFieldAllFields = "__all_fields"
IndexingFieldsNameSpatialShare = "spatial(shape)"
//TBD CUSTOM_SORT_FIELD_NAME = "__customSort";
IndexingSpatialDefaultDistnaceErrorPct = 0.025
headersRequestTime = "Raven-Request-Time"
headersRefreshTopology = "Refresh-Topology"
headersTopologyEtag = "Topology-Etag"
headersClientConfigurationEtag = "Client-Configuration-Etag"
headersRefreshClientConfiguration = "Refresh-Client-Configuration"
headersClientVersion = "Raven-Client-Version"
headersEtag = "ETag"
headersIfNoneMatch = "If-None-Match"
lastKnownClusterTransactionIndex = "Known-Raft-Index"
TransactionMode_SingleNode = 0
TransactionMode_ClusterWide = 1
)
type TransactionMode = int