package
0.0.0-20180419104149-40f2d1d03a96
Repository: https://github.com/tjfoc/hyperledger-fabric-gm.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.
GetChannelsInfo returns an array with information about all channels for this peer.
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.
GetSecureConfig returns the secure server configuration for the peer.
Take 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 havin to join.
MockInitialize resets chains for test env.
No description provided by the author
NewChannelPolicyManagerGetter returns a new instance of ChannelPolicyManagerGetter.
NewPeerClientConnection Returns a new grpc.ClientConn to the configured local PEER.
NewPeerClientConnectionWithAddress Returns a new grpc.ClientConn to the configured local PEER.
SetCurrConfigBlock sets the current config block of the specified chain.