Documentation ¶
Index ¶
- type SampleSysCC
- func (t *SampleSysCC) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
- func (t *SampleSysCC) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
- func (t *SampleSysCC) Query(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SampleSysCC ¶
type SampleSysCC struct { }
SampleSysCC example simple Chaincode implementation
func (*SampleSysCC) Init ¶
func (t *SampleSysCC) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Init initializes the sample system chaincode by storing the key and value arguments passed in as parameters
func (*SampleSysCC) Invoke ¶
func (t *SampleSysCC) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Invoke gets the supplied key and if it exists, updates the key with the newly supplied value.
func (*SampleSysCC) Query ¶
func (t *SampleSysCC) Query(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)
Query callback representing the query of a chaincode
Click to show internal directories.
Click to hide internal directories.