InfraProvider represents the default implementation of Fabric objects.
type InfraProvider struct {
// contains filtered or unexported fields
}
func New(config fab.EndpointConfig) *InfraProvider
New creates a InfraProvider enabling access to core Fabric objects and functionality.
func (f *InfraProvider) Close()
Close frees resources and caches.
func (f *InfraProvider) CommManager() fab.CommManager
CommManager provides comm support such as GRPC onnections
func (f *InfraProvider) CreateOrdererFromConfig(cfg *fab.OrdererConfig) (fab.Orderer, error)
CreateOrdererFromConfig creates a default implementation of Orderer based on configuration.
func (f *InfraProvider) CreatePeerFromConfig(peerCfg *fab.NetworkPeer) (fab.Peer, error)
CreatePeerFromConfig returns a new default implementation of Peer based configuration
func (f *InfraProvider) Initialize(providers context.Providers) error
Initialize sets the provider context