# Packages
No description provided by the author
# Functions
No description provided by the author
IsEnabledForLogLevel checks to see if the chaincodeLogger is enabled for a specific logging level used primarily for testing.
LogLevel converts a case-insensitive string chosen from CRITICAL, ERROR, WARNING, NOTICE, INFO or DEBUG into an element of the LoggingLevel type.
NewLogger allows a Go language chaincode to create one or more logging objects whose logs will be formatted consistently with, and temporally interleaved with the logs created by the shim interface.
No description provided by the author
Constructor to initialise the internal State map.
SetLoggingLevel allows a Go language chaincode to set the logging level of its shim.
SetupChaincodeLogging sets the chaincode logging format and the level to the values of CORE_CHAINCODE_LOGGING_FORMAT, CORE_CHAINCODE_LOGGING_LEVEL and CORE_CHAINCODE_LOGGING_SHIM set from core.yaml by chaincode_support.go.
chaincodes.
StartInProc is an entry point for system chaincodes bootstrap.
No description provided by the author
# Constants
ERROR constant - default error value.
ERRORTHRESHOLD constant - status code greater than or equal to 400 will be considered an error and rejected by endorser.
No description provided by the author
These constants comprise the LoggingLevel enumeration.
These constants comprise the LoggingLevel enumeration.
These constants comprise the LoggingLevel enumeration.
These constants comprise the LoggingLevel enumeration.
These constants comprise the LoggingLevel enumeration.
These constants comprise the LoggingLevel enumeration.
OK constant - status code less than 400, endorser will endorse it.
No description provided by the author
# Structs
ChaincodeLogger is an abstraction of a logging object for use by chaincodes.
ChaincodeStub is an object passed to chaincode for shim side handling of APIs.
CommonIterator documentation can be found in interfaces.go.
Handler handler implementation for shim side of chaincode.
HistoryQueryIterator documentation can be found in interfaces.go.
No description provided by the author
MockStub is an implementation of ChaincodeStubInterface for unit testing chaincode.
StateQueryIterator documentation can be found in interfaces.go.
# Interfaces
Chaincode interface must be implemented by all chaincodes.
ChaincodeStubInterface is used by deployable chaincode apps to access and modify their ledgers.
CommonIteratorInterface allows a chaincode to check whether any more result to be fetched from an iterator and close it when done.
HistoryQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by a history query.
MockQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by range query.
PeerChaincodeStream interface for stream between Peer and chaincode instance.
StateQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by range and execute query.
# Type aliases
LoggingLevel is an enumerated type of severity levels that control chaincode logging.
SendPanicFailure.