Versions in this module Expand all Collapse all v0 v0.0.2 Oct 22, 2019 Changes in this version + const DefaultTimeout + const MaxRecvMsgSize + const MaxSendMsgSize type ChaincodeStub + func (stub *ChaincodeStub) GetStateByRange(startKey, endKey string) (map[string][]byte, error) type ChaincodeStubInterface + GetStateByRange func(startKey, endKey string) (map[string][]byte, error) type PeerInfo + ID int v0.0.1 Oct 16, 2019 Changes in this version + const DEFAULT_TIMEOUT + const MAX_RECV_MSG_SIZE + const MAX_SEND_MSG_SIZE + var DefaultKeepaliveOptions = &KeepaliveOptions + func NewClientConnection(addr string, kopts *KeepaliveOptions, creds credentials.TransportCredentials, ...) (*grpc.ClientConn, error) + func ParseConfig() error + func Start(cc Chaincode) error + type Chaincode interface + Init func(stub ChaincodeStubInterface) error + Invoke func(stub ChaincodeStubInterface) error + type ChaincodeStub struct + func (stub *ChaincodeStub) GetBalance(who string) (string, error) + func (stub *ChaincodeStub) GetCcid() string + func (stub *ChaincodeStub) GetCreator() string + func (stub *ChaincodeStub) GetData() [][]byte + func (stub *ChaincodeStub) GetFuncAndArgs() (string, []string) + func (stub *ChaincodeStub) GetOwner() string + func (stub *ChaincodeStub) GetState(key string) ([]byte, error) + func (stub *ChaincodeStub) GetStates(keys ...string) (map[string][]byte, error) + func (stub *ChaincodeStub) GetStringData() []string + func (stub *ChaincodeStub) GetTxid() string + func (stub *ChaincodeStub) PutState(key string, value []byte, ifNotExist bool) error + func (stub *ChaincodeStub) PutStates(states map[string][]byte, keys ...string) error + func (stub *ChaincodeStub) Transfer(to, coin string) error + type ChaincodeStubInterface interface + GetBalance func(who string) (string, error) + GetCcid func() string + GetCreator func() string + GetData func() [][]byte + GetFuncAndArgs func() (string, []string) + GetOwner func() string + GetState func(key string) ([]byte, error) + GetStates func(keys ...string) (map[string][]byte, error) + GetStringData func() []string + GetTxid func() string + PutState func(key string, value []byte, ifNotExist bool) error + PutStates func(states map[string][]byte, keys ...string) error + Transfer func(to, coin string) error + type Handler struct + type KeepaliveOptions struct + ClientInterval time.Duration + ClientTimeout time.Duration + type NetConfig struct + Peers []PeerInfo + type PeerInfo struct + ChaincodeListen string + Id int + type RespStatus uint8 + const RespStatusError + const RespStatusQuery + const RespStatusUpdate + type Stream interface + CloseSend func() error + Recv func() (*pb.ChaincodeMessage, error) + Send func(*pb.ChaincodeMessage) error + type Token interface + GetBalance func(stub ChaincodeStubInterface, who string) error + GetTotalSupply func(stub ChaincodeStubInterface) error + Transfer func(stub ChaincodeStubInterface, to, amount string) error