top

Package storage provides access to the Store and Range abstractions. Each Cockroach node handles one or more stores, each of which multiplexes to one or more ranges, identified by [start, end) keys. Ranges are contiguous regions of the keyspace. Each range implements an instance of the Raft consensus algorithm to synchronize participating range replicas.

Each store is represented by a single engine.Engine instance. The ranges hosted by a store all have access to the same engine, but write to only a range-limited keyspace within it. Ranges access the underlying engine via the MVCC interface, which provides historical versioned values.

Package storage is a generated protocol buffer package.

It is generated from these files:
	cockroach/storage/raft.proto
	cockroach/storage/rangetree.proto

It has these top-level messages:
	RaftMessageRequest
	RaftMessageResponse
	ConfChangeContext
	RangeTree
	RangeTreeNode

Imports 38 package(s)

  1. github.com/coreos/etcd/raft
  2. github.com/cockroachdb/cockroach/sql/sqlutil
  3. github.com/cockroachdb/cockroach/util/hlc
  4. github.com/cockroachdb/cockroach/util/cache
  5. github.com/gogo/protobuf/proto
  6. github.com/cockroachdb/cockroach/util/log
  7. github.com/cockroachdb/cockroach/storage/storagebase
  8. github.com/pkg/errors
  9. github.com/cockroachdb/cockroach/gossip
  10. github.com/cockroachdb/cockroach/util/interval
  11. github.com/cockroachdb/cockroach/util
  12. github.com/cockroachdb/cockroach/util/retry
  13. github.com/cockroachdb/cockroach/storage/engine
  14. github.com/cockroachdb/cockroach/util/protoutil
  15. github.com/google/btree
  16. google.golang.org/grpc
  17. github.com/cockroachdb/cockroach/util/envutil
  18. github.com/cockroachdb/cockroach/util/timeutil
  19. golang.org/x/net/context
  20. github.com/cockroachdb/cockroach/util/stop
  21. github.com/cockroachdb/cockroach/util/uuid
  22. github.com/kr/pretty
  23. github.com/cockroachdb/cockroach/storage/engine/enginepb
  24. github.com/cockroachdb/cockroach/keys
  25. github.com/cockroachdb/cockroach/util/tracing
  26. github.com/cockroachdb/cockroach/config
  27. github.com/cockroachdb/cockroach/client
  28. golang.org/x/net/trace
  29. github.com/cockroachdb/cockroach/util/encoding
  30. github.com/cockroachdb/cockroach/base
  31. github.com/cockroachdb/cockroach/roachpb
  32. github.com/cockroachdb/cockroach/util/metric
  33. github.com/cockroachdb/cockroach/build
  34. github.com/cockroachdb/cockroach/security
  35. github.com/cockroachdb/cockroach/rpc
  36. github.com/coreos/etcd/raft/raftpb
  37. github.com/cockroachdb/cockroach/util/bufalloc
  38. github.com/opentracing/opentracing-go

Test imports 13 package(s)

  1. github.com/cockroachdb/cockroach/util/caller
  2. github.com/cockroachdb/cockroach/util/randutil
  3. github.com/cockroachdb/cockroach/sql/sqlbase
  4. github.com/cockroachdb/cockroach/security/securitytest
  5. github.com/cockroachdb/cockroach/kv
  6. github.com/cockroachdb/cockroach/gossip/resolver
  7. github.com/cockroachdb/cockroach/testutils
  8. github.com/cockroachdb/cockroach/testutils/sqlutils
  9. github.com/cockroachdb/cockroach/storage
  10. github.com/cockroachdb/cockroach/testutils/gossiputil
  11. github.com/cockroachdb/cockroach/util/leaktest
  12. github.com/cockroachdb/cockroach/server
  13. github.com/cockroachdb/pq