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

Test imports 15 package(s)

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