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

                Source Files