Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRefreshInterval ¶
WithRefreshInterval sets the interval in which the peer cache is refreshed
func WithResponseTimeout ¶
WithResponseTimeout sets the Discover service response timeout
Types ¶
type PeerState ¶
type PeerState interface {
BlockHeight() uint64
}
PeerState provides state information about the Peer
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service chooses endorsing peers for a given set of chaincodes using Fabric's Discovery Service
func New ¶
func New(ctx contextAPI.Client, channelID string, discovery fab.DiscoveryService, opts ...coptions.Opt) (*Service, error)
New creates a new dynamic selection service using Fabric's Discovery Service
func (*Service) Close ¶
func (s *Service) Close()
Close closes all resources associated with the service
func (*Service) GetEndorsersForChaincode ¶
func (s *Service) GetEndorsersForChaincode(chaincodes []*fab.ChaincodeCall, opts ...coptions.Opt) ([]fab.Peer, error)
GetEndorsersForChaincode returns the endorsing peers for the given chaincodes
Click to show internal directories.
Click to hide internal directories.