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

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

Test imports 17 package(s)

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