 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
NewService creates a new discovery service instance
Types ¶
type AccessControlSupport ¶
type AccessControlSupport interface {
	// Eligible returns whether the given peer is eligible for receiving
	// service from the discovery service for a given channel
	EligibleForService(channel string, data common2.SignedData) error
}
    AccessControlSupport checks if clients are eligible of being serviced
type Config ¶
type Config struct {
	TLS                          bool
	AuthCacheEnabled             bool
	AuthCacheMaxSize             int
	AuthCachePurgeRetentionRatio float64
}
    Config defines the configuration of the discovery service
type ConfigSequenceSupport ¶
type ConfigSequenceSupport interface {
	// ConfigSequence returns the configuration sequence of the a given channel
	ConfigSequence(channel string) uint64
}
    ConfigSequenceSupport returns the config sequence of the given channel
type ConfigSupport ¶
type ConfigSupport interface {
	// Config returns the channel's configuration
	Config(channel string) (*discovery2.ConfigResult, error)
}
    ConfigSupport provides access to channel configuration
type EndorsementSupport ¶
type EndorsementSupport interface {
	// PeersForEndorsement returns an EndorsementDescriptor for a given set of peers, channel, and chaincode
	PeersForEndorsement(channel common.ChainID, interest *discovery2.ChaincodeInterest) (*discovery2.EndorsementDescriptor, error)
}
    EndorsementSupport provides knowledge of endorsement policy selection for chaincodes
type GossipSupport ¶
type GossipSupport interface {
	// ChannelExists returns whether a given channel exists or not
	ChannelExists(channel string) bool
	// PeersOfChannel returns the NetworkMembers considered alive
	// and also subscribed to the channel given
	PeersOfChannel(common.ChainID) discovery.Members
	// Peers returns the NetworkMembers considered alive
	Peers() discovery.Members
	// IdentityInfo returns identity information about peers
	IdentityInfo() api.PeerIdentitySet
}
    GossipSupport aggregates abilities that the gossip module provides to the discovery service, such as knowing information about peers
type Support ¶
type Support interface {
	AccessControlSupport
	GossipSupport
	EndorsementSupport
	ConfigSupport
	ConfigSequenceSupport
}
    Support defines an interface that allows the discovery service to obtain information that other peer components have
 Click to show internal directories. 
   Click to hide internal directories.