Documentation ¶
Index ¶
- type InfraProvider
- func (f *InfraProvider) Close()
- func (f *InfraProvider) CommManager() fab.CommManager
- func (f *InfraProvider) CreateOrdererFromConfig(cfg *fab.OrdererConfig) (fab.Orderer, error)
- func (f *InfraProvider) CreatePeerFromConfig(peerCfg *fab.NetworkPeer) (fab.Peer, error)
- func (f *InfraProvider) Initialize(providers context.Providers) error
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) 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
Click to show internal directories.
Click to hide internal directories.