Documentation ¶
Overview ¶
Package pinger contains structure and functions for checking chain code accessibility
Index ¶
Constants ¶
View Source
const ( // PingsStatePrefix prefix for PingInfo composite key in chain code state PingKeyPrefix = `PING` // PingEvent event name PingEvent = `PING` // FuncPingConstant func name FuncPingConstant = `pingLocal` // FuncPing func name FuncPing = `ping` // FuncPings func name FuncPings = `pings` )
Variables ¶
This section is empty.
Functions ¶
func Ping ¶
Ping chaincode func puts tx creator information into chaincode state can be used for checking endorsement policy is working
func PingConstant ¶
PingConstant chaincode func returns invoker information can be used for testing that chain code is installed and instantiated
Types ¶
type PingInfo ¶
PingInfo stores time and certificate of ping tx creator
func FromContext ¶
FromContext create PingInfo struct with tx creator Id and certificate in PEM format
Click to show internal directories.
Click to hide internal directories.