...

Package gossip

import "github.com/hyperledger/fabric/discovery/support/gossip"
Overview
Index

Overview ▾

type DiscoverySupport

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

type DiscoverySupport struct {
    gossip2.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