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

Test imports 17 package(s)

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