fabric: github.com/hyperledger/fabric/discovery/support/gossip Index | Files

package gossip

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

Index

Package Files

support.go

type DiscoverySupport Uses

type DiscoverySupport struct {
    Gossip
}

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

func NewDiscoverySupport Uses

func NewDiscoverySupport(g Gossip) *DiscoverySupport

NewDiscoverySupport creates a new DiscoverySupport

func (*DiscoverySupport) ChannelExists Uses

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

ChannelExists returns whether a given channel exists or not

func (*DiscoverySupport) Peers Uses

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

Peers returns the NetworkMembers considered alive

func (*DiscoverySupport) PeersOfChannel Uses

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

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

type Gossip Uses

type Gossip interface {
    // IdentityInfo returns identity information about peers
    IdentityInfo() api.PeerIdentitySet
    // GetPeers returns the NetworkMembers considered alive
    Peers() []discovery.NetworkMember
    // PeersOfChannel returns the NetworkMembers considered alive
    // and also subscribed to the channel given
    PeersOfChannel(common.ChannelID) []discovery.NetworkMember
    // SelfChannelInfo returns the peer's latest StateInfo message of a given channel
    SelfChannelInfo(common.ChannelID) *protoext.SignedGossipMessage
    // SelfMembershipInfo returns the peer's membership information
    SelfMembershipInfo() discovery.NetworkMember
}

Package gossip imports 5 packages (graph) and is imported by 2 packages. Updated 2020-01-19. Refresh now. Tools for package owners.