# README
Pinger - hyperledger fabric chaincode ping extension
Often there is a need to find out if everything is correct with chaincode. To do it we would like to ping CC and know some information.
CCKit provides pinger
extension for implementing ping opportunity in Hyperledger Fabric chaincodes. When chaincode will be pinged,
you get information about invoker, his certificate and time.
Pinger implemented in two version:
- As chaincode handlers
- As service, that can be embedded in chaincode, using chaincode-as-service mode
# Functions
No description provided by the author
NewChaincodePingerServiceGateway creates gateway to access chaincode method via chaincode service.
No description provided by the author
No description provided by the author
Ping create PingInfo struct with tx creator ID and certificate in PEM format.
RegisterChaincodePingerServiceChaincode registers service methods as chaincode router handlers.
RegisterChaincodePingerServiceHandler registers the http handlers for service ChaincodePingerService to "mux".
RegisterChaincodePingerServiceHandlerClient registers the http handlers for service ChaincodePingerService to "mux".
RegisterChaincodePingerServiceHandlerFromEndpoint is same as RegisterChaincodePingerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterChaincodePingerServiceHandlerServer registers the http handlers for service ChaincodePingerService to "mux".
No description provided by the author
# Constants
ChaincodePingerServiceChaincode method names.
ChaincodePingerServiceChaincodeMethodPrefix allows to use multiple services with same method names in one chaincode.
FuncPing func name.
FuncPingConstant func name.
FuncPings func name.
PingEvent event name.
PingKeyPrefix prefix for PingInfo composite key in chain code state.
# Variables
go:embed chaincode_pinger.swagger.json.
No description provided by the author
# Structs
No description provided by the author
gateway implementation gateway can be used as kind of SDK, GRPC or REST server ( via grpc-gateway or clay ).
stores time and certificate of ping tx creator.
UnimplementedChaincodePingerServiceServer can be embedded to have forward compatible implementations.
# Interfaces
ChaincodePingerServiceChaincode chaincode methods interface.
ChaincodePingerServiceClient is the client API for ChaincodePingerService service.
ChaincodePingerServiceServer is the server API for ChaincodePingerService service.