samplesyscc

package
v0.6.1-preview Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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