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

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

Test imports 17 package(s)

  1. github.com/cockroachdb/cockroach/testutils
  2. github.com/cockroachdb/cockroach/server
  3. github.com/cockroachdb/cockroach/storage
  4. github.com/cockroachdb/cockroach/testutils/buildutil
  5. github.com/cockroachdb/cockroach/kv
  6. github.com/cockroachdb/cockroach/util/netutil
  7. github.com/coreos/etcd/raft/raftpb
  8. github.com/cockroachdb/cockroach/util/leaktest
  9. github.com/cockroachdb/cockroach/gossip/simulation
  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/security/securitytest
  14. github.com/cockroachdb/cockroach/storage/engine
  15. github.com/cockroachdb/cockroach/storage/storagebase
  16. github.com/cockroachdb/cockroach/util/randutil
  17. github.com/cockroachdb/cockroach/testutils/localtestcluster