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

Test imports 17 package(s)

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