fabric: github.com/hyperledger/fabric/examples/chaincode/go/example05 Index | Files | Directories

package example05

import "github.com/hyperledger/fabric/examples/chaincode/go/example05"

Index

Package Files

chaincode.go

type SimpleChaincode Uses

type SimpleChaincode struct{}

SimpleChaincode example simple Chaincode implementation

func (*SimpleChaincode) Init Uses

func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response

Init takes two arguments, a string and int. The string will be a key with the int as a value.

func (*SimpleChaincode) Invoke Uses

func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response

Directories

PathSynopsis
cmd

Package example05 imports 4 packages (graph) and is imported by 1 packages. Updated 2018-07-17. Refresh now. Tools for package owners.