blob: 7505315374745c43aa19295c48a7ce6df46f07e2 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package common
// Constants related to storage engine keys.
// Note, these are persisted and therefore must not be modified.
const (
AppPrefix = "a"
CollectionPermsPrefix = "c"
DatabasePrefix = "d"
DbGCPrefix = "g"
DbInfoPrefix = "i"
LogPrefix = "l"
LogMarkerPrefix = "m"
VClockPrefix = "q"
RowPrefix = "r"
ServicePrefix = "s"
VersionPrefix = "v"
SyncPrefix = "y"
// KeyPartSep is a separator for parts of storage engine keys, e.g. separating
// collection id from row key.
KeyPartSep = "\xfe"
// PrefixRangeLimitSuffix is a key suffix that indicates the end of a prefix
// range. Must be greater than any character allowed in client-specified keys.
PrefixRangeLimitSuffix = "\xff"
// IdPartSep is a separator and terminator for id encoding in keys. NUL was
// chosen to make ids encoded as <blessing><sep><name><sep> sorted, first by
// blessing, then by name.
IdPartSep = "\x00"
// AppDir is the filesystem directory that holds all app databases.
AppDir = "apps"
// DbDir is the filesystem directory that holds all databases for an app.
DbDir = "dbs"
// Constants related to object names.
const (
// Object name component for Syncbase-to-Syncbase (sync) RPCs.
// Sync object names have the form:
// <syncbase>/%%sync/...
SyncbaseSuffix = "%%sync"
// Other constants.
const (
// The project is a big virtual cluster of timeservers providing
// reliable easy to use NTP service for millions of clients.
// For more information, see:
NtpDefaultHost = ""