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

Test imports 17 package(s)

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