fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/provider/fabpvdr Index | Files

package fabpvdr

import "github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/provider/fabpvdr"


Package Files


type InfraProvider Uses

type InfraProvider struct {
    // contains filtered or unexported fields

InfraProvider represents the default implementation of Fabric objects.

func New Uses

func New(config fab.EndpointConfig) *InfraProvider

New creates a InfraProvider enabling access to core Fabric objects and functionality.

func (*InfraProvider) Close Uses

func (f *InfraProvider) Close()

Close frees resources and caches.

func (*InfraProvider) CommManager Uses

func (f *InfraProvider) CommManager() fab.CommManager

CommManager provides comm support such as GRPC onnections

func (*InfraProvider) CreateOrdererFromConfig Uses

func (f *InfraProvider) CreateOrdererFromConfig(cfg *fab.OrdererConfig) (fab.Orderer, error)

CreateOrdererFromConfig creates a default implementation of Orderer based on configuration.

func (*InfraProvider) CreatePeerFromConfig Uses

func (f *InfraProvider) CreatePeerFromConfig(peerCfg *fab.NetworkPeer) (fab.Peer, error)

CreatePeerFromConfig returns a new default implementation of Peer based configuration

func (*InfraProvider) Initialize Uses

func (f *InfraProvider) Initialize(providers context.Providers) error

Initialize sets the provider context

Package fabpvdr imports 7 packages (graph) and is imported by 1 packages. Updated 2019-05-10. Refresh now. Tools for package owners.