top

Package gossip implements a protocol for sharing information between Cockroach nodes using an ad-hoc, peer-to-peer network. The self-assembled network aims to minimize time for new information to reach each node, and minimize network traffic required.

Gossiped information is identified by key. Gossip information is captured by info objects.

Single-valued info values can have any type.

A map of info objects is kept by a Gossip instance. Single-valued info objects can be added via Gossip.AddInfo(). Info can be queried for single-valued keys via Gossip.GetInfo.

Package gossip is a generated protocol buffer package.

It is generated from these files:
	cockroach/gossip/gossip.proto

It has these top-level messages:
	BootstrapInfo
	Request
	Response
	InfoStatus
	Info

Imports 20 package(s)

  1. github.com/gogo/protobuf/sortkeys
  2. github.com/cockroachdb/cockroach/util
  3. github.com/cockroachdb/cockroach/util/protoutil
  4. github.com/rubyist/circuitbreaker
  5. github.com/cockroachdb/cockroach/gossip/resolver
  6. golang.org/x/net/context
  7. github.com/cockroachdb/cockroach/security
  8. github.com/cockroachdb/cockroach/util/stop
  9. github.com/cockroachdb/cockroach/util/syncutil
  10. github.com/gogo/protobuf/proto
  11. github.com/cockroachdb/cockroach/config
  12. github.com/cockroachdb/cockroach/roachpb
  13. github.com/cockroachdb/cockroach/util/metric
  14. github.com/cockroachdb/cockroach/util/timeutil
  15. github.com/cockroachdb/cockroach/util/hlc
  16. github.com/cockroachdb/cockroach/util/log
  17. google.golang.org/grpc
  18. github.com/pkg/errors
  19. github.com/cockroachdb/cockroach/util/grpcutil
  20. github.com/cockroachdb/cockroach/rpc

Test imports 7 package(s)

  1. github.com/cockroachdb/cockroach/gossip
  2. github.com/cockroachdb/cockroach/util/netutil
  3. github.com/cockroachdb/cockroach/base
  4. github.com/cockroachdb/cockroach/security/securitytest
  5. github.com/cockroachdb/cockroach/gossip/simulation
  6. github.com/cockroachdb/cockroach/util/leaktest
  7. github.com/cockroachdb/cockroach/testutils