fabpvdr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraProvider

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

InfraProvider represents the default implementation of Fabric objects.

func New

func New(config fab.EndpointConfig) *InfraProvider

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

func (*InfraProvider) Close

func (f *InfraProvider) Close()

Close frees resources and caches.

func (*InfraProvider) CommManager

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

CommManager provides comm support such as GRPC onnections

func (*InfraProvider) CreateOrdererFromConfig

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

CreateOrdererFromConfig creates a default implementation of Orderer based on configuration.

func (*InfraProvider) CreatePeerFromConfig

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

CreatePeerFromConfig returns a new default implementation of Peer based configuration

func (*InfraProvider) Initialize

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

Initialize sets the provider context

Jump to

Keyboard shortcuts

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