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/status.proto

It has these top-level messages:
	RaftMessageRequest
	RaftMessageResponse
	ConfChangeContext
	StoreStatus

Imports 29 package(s)

  1. github.com/cockroachdb/cockroach/util/interval
  2. github.com/cockroachdb/cockroach/sql
  3. github.com/cockroachdb/cockroach/client
  4. github.com/gogo/protobuf/proto
  5. github.com/cockroachdb/cockroach/util/tracing
  6. github.com/cockroachdb/cockroach/util/cache
  7. github.com/cockroachdb/cockroach/util/encoding
  8. github.com/cockroachdb/cockroach/rpc
  9. github.com/opentracing/opentracing-go
  10. github.com/google/btree
  11. github.com/cockroachdb/cockroach/config
  12. github.com/cockroachdb/cockroach/util/log
  13. github.com/cockroachdb/cockroach/util/hlc
  14. google.golang.org/grpc
  15. github.com/cockroachdb/cockroach/util
  16. github.com/cockroachdb/cockroach/gossip
  17. github.com/coreos/etcd/raft
  18. golang.org/x/net/trace
  19. github.com/cockroachdb/cockroach/util/uuid
  20. github.com/spf13/pflag
  21. github.com/cockroachdb/cockroach/security
  22. golang.org/x/net/context
  23. github.com/coreos/etcd/raft/raftpb
  24. github.com/cockroachdb/cockroach/roachpb
  25. github.com/cockroachdb/cockroach/util/retry
  26. github.com/cockroachdb/cockroach/sql/privilege
  27. github.com/cockroachdb/cockroach/util/stop
  28. github.com/cockroachdb/cockroach/keys
  29. github.com/cockroachdb/cockroach/storage/engine

Test imports 14 package(s)

  1. github.com/kr/pretty
  2. github.com/cockroachdb/cockroach/util/caller
  3. github.com/cockroachdb/cockroach/security/securitytest
  4. github.com/cockroachdb/cockroach/util/leaktest
  5. github.com/cockroachdb/cockroach/base
  6. github.com/cockroachdb/cockroach/kv
  7. github.com/cockroachdb/cockroach/util/randutil
  8. github.com/cockroachdb/cockroach/storage
  9. github.com/cockroachdb/cockroach/testutils
  10. github.com/cockroachdb/cockroach/server
  11. github.com/cockroachdb/cockroach/testutils/sqlutils
  12. github.com/lib/pq
  13. github.com/cockroachdb/cockroach/util/metric
  14. github.com/cockroachdb/cockroach/testutils/gossiputil