top

Package kv provides a key-value API to an underlying cockroach datastore. Cockroach itself provides a single, monolithic, sorted key value map, distributed over multiple nodes. Each node holds a set of key ranges. Package kv translates between the monolithic, logical map which Cockroach clients experience to the physically distributed key ranges which comprise the whole.

Package kv implements the logic necessary to locate appropriate nodes based on keys being read or written. In some cases, requests may span a range of keys, in which case multiple RPCs may be sent out.

Imports 26 package(s)

  1. github.com/cockroachdb/cockroach/util/hlc
  2. google.golang.org/grpc/peer
  3. google.golang.org/grpc
  4. github.com/cockroachdb/cockroach/util/retry
  5. github.com/cockroachdb/cockroach/util/cache
  6. github.com/cockroachdb/cockroach/keys
  7. github.com/opentracing/opentracing-go
  8. github.com/cockroachdb/cockroach/base
  9. github.com/pkg/errors
  10. github.com/cockroachdb/cockroach/util/envutil
  11. github.com/cockroachdb/cockroach/util/log
  12. github.com/cockroachdb/cockroach/util/uuid
  13. github.com/opentracing/basictracer-go
  14. github.com/cockroachdb/cockroach/util/metric
  15. github.com/cockroachdb/cockroach/security
  16. github.com/cockroachdb/cockroach/client
  17. golang.org/x/net/context
  18. github.com/cockroachdb/cockroach/roachpb
  19. github.com/cockroachdb/cockroach/util/tracing
  20. github.com/cockroachdb/cockroach/rpc
  21. github.com/cockroachdb/cockroach/gossip
  22. github.com/cockroachdb/cockroach/util/timeutil
  23. github.com/biogo/store/llrb
  24. github.com/cockroachdb/cockroach/util/stop
  25. google.golang.org/grpc/credentials
  26. github.com/cockroachdb/cockroach/util

Test imports 15 package(s)

  1. github.com/cockroachdb/cockroach/storage/storagebase
  2. github.com/cockroachdb/cockroach/storage
  3. github.com/cockroachdb/cockroach/gossip/simulation
  4. github.com/cockroachdb/cockroach/storage/engine
  5. github.com/cockroachdb/cockroach/testutils
  6. github.com/cockroachdb/cockroach/storage/engine/enginepb
  7. github.com/cockroachdb/cockroach/util/leaktest
  8. github.com/cockroachdb/cockroach/testutils/buildutil
  9. github.com/cockroachdb/cockroach/util/randutil
  10. github.com/cockroachdb/cockroach/security/securitytest
  11. github.com/cockroachdb/cockroach/testutils/localtestcluster
  12. github.com/cockroachdb/cockroach/kv
  13. github.com/cockroachdb/cockroach/config
  14. github.com/coreos/etcd/raft/raftpb
  15. github.com/cockroachdb/cockroach/server