package
0.0.0-20140721202556-2b2087e3d869
Repository: https://github.com/joinhack/cockroach.git
Documentation: pkg.go.dev

# Functions

NewDB returns a key-value datastore client which connects to the Cockroach cluster via the supplied gossip instance.
NewGoSchema returns a schema using name and key and a map from Table Key to an instance of a Go struct corresponding to the Table (the Table name is derived from the Go struct name).
NewRESTServer allocates and returns a new server.
NewYAMLSchema returns a schema based on the YAML input string.

# Constants

StructuredKeyPrefix is the prefix for RESTful endpoints used to interact with structured data schemas.

# Structs

Column contains the schema for a column.
A DB implements the structured data API using the Cockroach kv client API.
LatLong specifies a (latitude, longitude, altitude, accuracy) quadruplet with 64-bit floating point precision.
A RESTServer provides a RESTful HTTP API to interact with an underlying key-value store.
Schema contains a named sequence of Table schemas.
Table contains the schema for a table.

# Type aliases

IntegerMap is a map from string key to int64 integer value.
IntegerSet is a set of int64 integer values.
StringMap is a map from string key to string value.
StringSet is a set of string values.
TableSlice helpfully implements the sort interface.