Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryService

type DiscoveryService struct {
	// contains filtered or unexported fields
}

    DiscoveryService implements a static discovery service

    func NewService

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

      NewService creates a static discovery service

      func (*DiscoveryService) GetPeers

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

        GetPeers is used to get peers

        type LocalProvider

        type LocalProvider struct {
        	// contains filtered or unexported fields
        }

          LocalProvider implements discovery provider

          func NewLocalProvider

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

            NewLocalProvider returns discovery provider

            func (*LocalProvider) CreateLocalDiscoveryService

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

              CreateLocalDiscoveryService return a local discovery service

              func (*LocalProvider) Initialize

              func (dp *LocalProvider) Initialize(fabPvdr contextAPI.Providers) error

                Initialize initializes the DiscoveryProvider