package
1.0.0-alpha
Repository: https://github.com/leonlxy/hyperledger.git
Documentation: pkg.go.dev

# Functions

GetChaincodeFromFS returns the chaincode and its package from the file system.
GetChaincodePackage returns the chaincode package from the file system.
GetChaincodeProvider returns instances of ChaincodeProvider; the actual implementation is controlled by the factory that is registered via RegisterChaincodeProviderFactory.
GetInstalledChaincodes returns a map whose key is the chaincode id and value is the ChaincodeDeploymentSpec struct for that chaincodes that have been installed (but not necessarily instantiated) on the peer by searching the chaincode install path.
NewCCContext just construct a new struct with whatever args.
PutChaincodeIntoFS - serializes chaincode to a package on the file system.
RegisterChaincodeProviderFactory is to be called once to set the factory that will be used to obtain instances of ChaincodeProvider.
SetChaincodesPath sets the chaincode path for this peer.

# Structs

CCContext pass this around instead of string of args.
ChaincodeData defines the datastructure for chaincodes to be serialized by proto.

# Interfaces

ChaincodeProvider provides an abstraction layer that is used for different packages to interact with code in the chaincode package without importing it; more methods should be added below if necessary.
ChaincodeProviderFactory defines a factory interface so that the actual implementation can be injected.