package
1.1.0
Repository: https://github.com/lightkool/fabric.git
Documentation: pkg.go.dev

# Functions

CacheConfiguration computes and caches commonly-used constants and computed constants as package variables.
CreateChainFromBlock creates a new chain from config block.
CreatePeerServer creates an instance of comm.GRPCServer This server is used for peer communications.
GetChannelConfig returns the channel configuration of the chain with channel ID.
GetChannelsInfo returns an array with information about all channels for this peer.
GetClientCertificate returns the TLS certificate to use for gRPC client connections.
GetCurrConfigBlock returns the cached config block of the specified chain.
GetLedger returns the ledger of the chain with chain ID.
GetLocalAddress returns the peer.address property.
GetLocalIP returns the non loopback local IP of the host.
GetMSPIDs returns the ID of each application MSP defined on this chain.
GetPeerEndpoint returns peerEndpoint from cached configuration.
GetPeerServer returns the peer server instance.
GetPolicyManager returns the policy manager of the chain with chain ID.
GetResourcesConfig returns the resources configuration of the chain with channel ID.
GetServerConfig returns the gRPC server configuration for the peer.
GetSupport returns a new Support instance by calling the factory.
InitChain takes care to initialize chain after peer joined, for example deploys system CCs.
Initialize sets up any chains that the peer has from the persistence.
MockCreateChain used for creating a ledger for a chain for tests without having to join.
MockInitialize resets chains for test env.
No description provided by the author
NewChannelPolicyManagerGetter returns a new instance of ChannelPolicyManagerGetter.
NewResourceConfigSupport returns.
NewDeliverEventsServer creates a peer.Deliver server to deliver block and filtered block events.
RegisterSupportFactory should be called to specify which factory should be used to serve GetSupport calls.
SetCurrConfigBlock sets the current config block of the specified chain.

# Variables

No description provided by the author

# Structs

DeliverSupportManager provides access to a channel for performing deliver.
No description provided by the author

# Interfaces

Support gives access to peer resources and avoids calls to static methods.
SupportFactory is a factory of Support interfaces.

# Type aliases

PolicyCheckerProvider given resource name provides corresponding poicy checker.