import "github.com/hyperledger/fabric-sdk-go/pkg/client/common/discovery/staticdiscovery"
localprovider.go localservice.go service.go
type DiscoveryService struct {
// contains filtered or unexported fields
}
DiscoveryService implements a static discovery service
func NewService(config fab.EndpointConfig, peerCreator peerCreator, channelID string) (*DiscoveryService, error)
NewService creates a static discovery service
func (ds *DiscoveryService) GetPeers() ([]fab.Peer, error)
GetPeers is used to get peers
type LocalProvider struct {
// contains filtered or unexported fields
}
LocalProvider implements discovery provider
func NewLocalProvider(config fab.EndpointConfig) (*LocalProvider, error)
NewLocalProvider returns discovery provider
func (dp *LocalProvider) CreateLocalDiscoveryService(mspID string) (fab.DiscoveryService, error)
CreateLocalDiscoveryService return a local discovery service
func (dp *LocalProvider) Initialize(fabPvdr contextAPI.Providers) error
Initialize initializes the DiscoveryProvider
Package staticdiscovery imports 4 packages (graph) and is imported by 2 packages. Updated 2019-04-12. Refresh now. Tools for package owners.