fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/client/common/discovery/staticdiscovery Index | Files

package staticdiscovery

import "github.com/hyperledger/fabric-sdk-go/pkg/client/common/discovery/staticdiscovery"


Package Files

localprovider.go localservice.go service.go

type DiscoveryService Uses

type DiscoveryService struct {
    // contains filtered or unexported fields

DiscoveryService implements a static discovery service

func NewService Uses

func NewService(config fab.EndpointConfig, peerCreator peerCreator, channelID string) (*DiscoveryService, error)

NewService creates a static discovery service

func (*DiscoveryService) GetPeers Uses

func (ds *DiscoveryService) GetPeers() ([]fab.Peer, error)

GetPeers is used to get peers

type LocalProvider Uses

type LocalProvider struct {
    // contains filtered or unexported fields

LocalProvider implements discovery provider

func NewLocalProvider Uses

func NewLocalProvider(config fab.EndpointConfig) (*LocalProvider, error)

NewLocalProvider returns discovery provider

func (*LocalProvider) CreateLocalDiscoveryService Uses

func (dp *LocalProvider) CreateLocalDiscoveryService(mspID string) (fab.DiscoveryService, error)

CreateLocalDiscoveryService return a local discovery service

func (*LocalProvider) Initialize Uses

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.