top

ShareDB allows to set up a shared key-value store that exposes BoltDB over the network.

It provides a simplified interface than using BoltDB locally. In particular it only provides atomicity for individual read and write operations, but not transactions across multiple I/O operations.

Each data item is address by a triple: database,bucket,key. 'database' maps to a BoltDB database stored in a single file. 'bucket' and 'key' correspond directly to the analog concepts in BoltDB.

Multiple applications can share a server. Each application simple defines it's own namespace by using a unique database name.

Package sharedb is a generated protocol buffer package.

It is generated from these files:

sharedb.proto

It has these top-level messages:

GetRequest
GetResponse
PutRequest
PutResponse
DeleteRequest
DeleteResponse
DatabasesRequest
DatabasesResponse
BucketsRequest
BucketsResponse
KeysRequest
KeysResponse

Imports 5 package(s)

  1. github.com/boltdb/bolt
  2. github.com/golang/protobuf/proto
  3. go.skia.org/infra/go/fileutil
  4. golang.org/x/net/context
  5. google.golang.org/grpc

Test imports 3 package(s)

  1. go.skia.org/infra/go/testutils
  2. go.skia.org/infra/go/util
  3. github.com/stretchr/testify/require