package
0.0.0-20140721202556-2b2087e3d869
Repository: https://github.com/joinhack/cockroach.git
Documentation: pkg.go.dev
# Functions
ChooseRandomReplica returns a replica selected at random or nil if none exist.
MakeKey makes a new key which is prefix+suffix.
NewInMem allocates and returns a new InMem object.
NewRange initializes the range starting at key.
NewStore returns a new instance of a store.
ParseZoneConfig parses a YAML serialized ZoneConfig.
PrefixEndKey determines the end key given a start key as a prefix.
# Variables
KeyConfigAccountingPrefix specifies the key prefix for accounting configurations.
KeyConfigPermissionPrefix specifies the key prefix for accounting configurations.
KeyConfigZonePrefix specifies the key prefix for zone configurations.
KeyMax is a maximum key value which sorts after all other keys.
KeyMeta1Prefix is the first level of key addressing.
KeyMeta2Prefix is the second level of key addressing.
KeyMetaPrefix is the prefix for range metadata keys.
KeyMin is a minimum key value which sorts before all other keys.
KeyNodeIDGenerator contains a sequence generator for node IDs.
KeyStoreIDGeneratorPrefix specifies key prefixes for sequence generators, one per node, for store IDs.
# Structs
AcctConfig holds accounting configuration.
An AccumulateTSRequest is arguments to the AccumulateTS() method.
An AccumulateTSResponse is the return value from the AccumulateTS() method.
A ContainsRequest is arguments to the Contains() method.
A ContainsResponse is the return value of the Contains() method.
A DeleteRangeRequest is arguments to the DeleteRange method.
A DeleteRangeResponse is the return value from the DeleteRange() method.
A DeleteRequest is arguments to the Delete() method.
A DeleteResponse is the return value from the Delete() method.
An EndTransactionRequest is arguments to the EndTransaction() method.
An EndTransactionResponse is the return value from the EndTransaction() method.
An EnqueueMessageRequest is arguments to the EnqueueMessage() method.
An EnqueueMessageResponse is the return value from the EnqueueMessage() method.
An EnqueueUpdateRequest is arguments to the EnqueueUpdate() method.
An EnqueueUpdateResponse is the return value from the EnqueueUpdate() method.
A GetRequest is arguments to the Get() method.
A GetResponse is the return value from the Get() method.
An IncrementRequest is arguments to the Increment() method.
An IncrementResponse is the return value from the Increment method.
InMem a simple, in-memory key-value store.
An InternalRangeLookupRequest is arguments to the InternalRangeLookup() method.
An InternalRangeLookupResponse is the return value from the InternalRangeLookup() method.
KeyValue is a pair of Key and Value for returned Key/Value pairs from ScanRequest/ScanResponse.
A LogEntry provides serialization of a read/write command.
NodeDescriptor holds details on node physical/network topology.
PermConfig holds permission configuration.
Permission specifies read/write access and associated priority.
A PutRequest is arguments to the Put() method.
A PutResponse is the return value form the Put() method.
A Range is a contiguous keyspace with writes managed via an instance of the Raft consensus algorithm.
RangeDescriptor is the metadata value stored for a metadata key.
A RangeMetadata holds information about the range, including range ID and start and end keys, and replicas slice.
A ReapQueueRequest is arguments to the ReapQueue() method.
A ReapQueueResponse is the return value from the ReapQueue() method.
Replica describes a replica location by node ID (corresponds to a host:port via lookup on gossip network), store ID (corresponds to a physical device, unique per node) and range ID.
RequestHeader is supplied with every storage node request.
ResponseHeader is returned with every storage node response.
A ScanRequest is arguments to the Scan() method.
A ScanResponse is the return value from the Scan() method.
A Store maintains a map of ranges by start key.
StoreCapacity contains capacity information for a storage device.
StoreDescriptor holds store information including store attributes, node descriptor and store capacity.
A StoreIdent uniquely identifies a store in the cluster.
Value specifies the value at a key.
ZoneConfig holds configuration that is needed for a range of KV pairs.
# Interfaces
Engine is the interface that wraps the core operations of a key/value store.
# Type aliases
Attributes specifies a list of arbitrary strings describing node topology, store type, and machine capabilities.
Key defines the key in the key-value datastore.
StoreFinder finds the disks in a datacenter with the most available capacity.