# Functions
Execute - execute proposal, return original response of chaincode.
ExecuteChaincode executes a given chaincode given chaincode name and arguments.
ExecuteWithErrorFilter is similar to Execute, but filters error contained in chaincode response and returns Payload of response only.
GetCDS retrieves a chaincode deployment spec for the required chaincode.
GetChain returns the chaincode framework support object.
GetChaincodeDefinition returns resourcesconfig.ChaincodeDefinition for the chaincode with the supplied name.
HandleChaincodeStream Main loop for handling the associated Chaincode stream.
IsDevMode returns true if the peer was configured with development-mode enabled.
NewChaincodeSupport creates a new ChaincodeSupport instance.
# Constants
DevModeUserRunsChaincode property allows user to run chaincode in development environment.
No description provided by the author
glh Mutual TLS auth client key and cert paths in the chaincode container.
No description provided by the author
TXSimulatorKey is used to attach ledger simulation context.
# Structs
// getLogLevelFromViper gets the chaincode container log levels from viper
func getLogLevelFromViper(module string) string {
//levelString := viper.GetString("chaincode.logging." + module)
//_, err := logging.LogLevel(levelString)
//
//if err == nil {
// log.Debugf("CORE_CHAINCODE_%s set to level %s", strings.ToUpper(module), levelString)
//} else {
// log.Warnf("CORE_CHAINCODE_%s has invalid log level %s.
DuplicateChaincodeHandlerError returned if attempt to register same chaincodeID while a stream already exists.
Handler responsible for management of Peer's side of chaincode stream.
# Interfaces
glhadd ChaincodeDefinition describes all of the necessary information for a peer to decide whether to endorse a proposal and whether to validate a transaction, for a particular chaincode.
No description provided by the author