staticdiscovery

package
v1.0.0-alpha4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL