Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusOk = 1 StatusNotFound = 2 Conflict = 3 BadRequest = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { ID string `json:"id"` IndexingPolicy CollectionIndexingPolicy `json:"indexingPolicy"` PartitionKey CollectionPartitionKey `json:"partitionKey"` ResourceID string `json:"_rid"` TimeStamp int64 `json:"_ts"` Self string `json:"_self"` ETag string `json:"_etag"` Docs string `json:"_docs"` Sprocs string `json:"_sprocs"` Triggers string `json:"_triggers"` Udfs string `json:"_udfs"` Conflicts string `json:"_conflicts"` }
type CollectionIndexingPolicy ¶
type CollectionIndexingPolicy struct { IndexingMode string `json:"indexingMode"` Automatic bool `json:"automatic"` IncludedPaths []CollectionIndexingPolicyPath `json:"includedPaths"` ExcludedPaths []CollectionIndexingPolicyPath `json:"excludedPaths"` }
type CollectionPartitionKey ¶
type PartitionKeyRange ¶
type PartitionKeyRange struct { ResourceID string `json:"_rid"` ID string `json:"id"` Etag string `json:"_etag"` MinInclusive string `json:"minInclusive"` MaxExclusive string `json:"maxExclusive"` RidPrefix int `json:"ridPrefix"` Self string `json:"_self"` ThroughputFraction int `json:"throughputFraction"` Status string `json:"status"` Parents []any `json:"parents"` TimeStamp int64 `json:"_ts"` Lsn int `json:"lsn"` }
type RepositoryStatus ¶
type RepositoryStatus int
type State ¶
type State struct { sync.RWMutex // Map databaseId -> Database Databases map[string]Database `json:"databases"` // Map databaseId -> collectionId -> Collection Collections map[string]map[string]Collection `json:"collections"` // Map databaseId -> collectionId -> documentId -> Documents Documents map[string]map[string]map[string]Document `json:"documents"` }
type StoredProcedure ¶
Click to show internal directories.
Click to hide internal directories.