Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoverySupport ¶
DiscoverySupport实现用于服务发现的支持 从流言蜚语中得到的
func NewDiscoverySupport ¶
func NewDiscoverySupport(g gossip2.Gossip) *DiscoverySupport
新建DiscoverySupport创建新的DiscoverySupport
func (*DiscoverySupport) ChannelExists ¶
func (s *DiscoverySupport) ChannelExists(channel string) bool
channel exists返回给定通道是否存在
func (*DiscoverySupport) Peers ¶
func (s *DiscoverySupport) Peers() discovery.Members
对等方返回被认为是活动的网络成员
func (*DiscoverySupport) PeersOfChannel ¶
func (s *DiscoverySupport) PeersOfChannel(chain common.ChainID) discovery.Members
peersofchannel返回被认为是活动的网络成员 也订阅了给定的频道
Click to show internal directories.
Click to hide internal directories.