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 25 package(s)

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

Test imports 14 package(s)

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