gossip

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoverySupport

type DiscoverySupport struct {
	gossip2.Gossip
}

DiscoverySupport implements support that is used for service discovery that is obtained from gossip

func NewDiscoverySupport

func NewDiscoverySupport(g gossip2.Gossip) *DiscoverySupport

NewDiscoverySupport creates a new DiscoverySupport

func (*DiscoverySupport) ChannelExists

func (s *DiscoverySupport) ChannelExists(channel string) bool

ChannelExists returns whether a given channel exists or not

func (*DiscoverySupport) Peers

func (s *DiscoverySupport) Peers() discovery.Members

Peers returns the NetworkMembers considered alive

func (*DiscoverySupport) PeersOfChannel

func (s *DiscoverySupport) PeersOfChannel(chain common.ChainID) discovery.Members

PeersOfChannel returns the NetworkMembers considered alive and also subscribed to the channel given

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL