ping

package
v0.0.0-...-cdd6ff6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

README

pingChaincode Fabric Chaincode Operation Example

Simi is by default configured with the pingChaincode fabric operation as an example of creating a WorkerConfig instance.

The PingWorker defined in ./ping.go, performs a chaincode operation like this:

func pingChaincode(_ shim.ChaincodeStubInterface, _ []string) peer.Response {
	return shim.Success(nil)
}

For more information on how to write chaincode for a Hyperledger Fabric DLN see the docs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPingSimi

func SetupPingSimi(c *config.WorkerConfig) error

Types

type PingWorker

type PingWorker struct {
	ChaincodeID string `yaml:"chaincodeID"`
	Sdk         *fabsdk.FabricSDK
	Username    string `yaml:"username"`
	Org         string `yaml:"org"`
	LogLevel    string `yaml:"logLevel"`
}

func (*PingWorker) Close

func (a *PingWorker) Close()

Close Fabric SDK resources and connections before exiting

func (*PingWorker) PingChaincodeAllOrgPeers

func (a *PingWorker) PingChaincodeAllOrgPeers() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL