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

Test imports 17 package(s)

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