Versions in this module Expand all Collapse all v0 v0.1.1 Aug 16, 2021 Changes in this version + const ERROR + const ERRORTHRESHOLD + const HistoryQueryResult + const OK + const StateQueryResult + func CreateCompositeKey(objectType string, attributes []string) (string, error) + func Error(msg string) pb.Response + func GetMSPID() (string, error) + func Start(cc Chaincode) error + func StartInProc(chaincodename string, stream ClientStream, cc Chaincode) error + func Success(payload []byte) pb.Response + type Chaincode interface + Init func(stub ChaincodeStubInterface) pb.Response + Invoke func(stub ChaincodeStubInterface) pb.Response + type ChaincodeServer struct + Address string + CC Chaincode + CCID string + KaOpts *keepalive.ServerParameters + TLSProps TLSProperties + func (cs *ChaincodeServer) Connect(stream pb.Chaincode_ConnectServer) error + func (cs *ChaincodeServer) Start() error + type ChaincodeStub struct + ChannelID string + TxID string + func (s *ChaincodeStub) CreateCompositeKey(objectType string, attributes []string) (string, error) + func (s *ChaincodeStub) DelPrivateData(collection string, key string) error + func (s *ChaincodeStub) DelState(key string) error + func (s *ChaincodeStub) GetArgs() [][]byte + func (s *ChaincodeStub) GetArgsSlice() ([]byte, error) + func (s *ChaincodeStub) GetBinding() ([]byte, error) + func (s *ChaincodeStub) GetChannelID() string + func (s *ChaincodeStub) GetCreator() ([]byte, error) + func (s *ChaincodeStub) GetDecorations() map[string][]byte + func (s *ChaincodeStub) GetFunctionAndParameters() (function string, params []string) + func (s *ChaincodeStub) GetHistoryForKey(key string) (HistoryQueryIteratorInterface, error) + func (s *ChaincodeStub) GetPrivateData(collection string, key string) ([]byte, error) + func (s *ChaincodeStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (StateQueryIteratorInterface, error) + func (s *ChaincodeStub) GetPrivateDataByRange(collection, startKey, endKey string) (StateQueryIteratorInterface, error) + func (s *ChaincodeStub) GetPrivateDataHash(collection string, key string) ([]byte, error) + func (s *ChaincodeStub) GetPrivateDataQueryResult(collection, query string) (StateQueryIteratorInterface, error) + func (s *ChaincodeStub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error) + func (s *ChaincodeStub) GetQueryResult(query string) (StateQueryIteratorInterface, error) + func (s *ChaincodeStub) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (s *ChaincodeStub) GetSignedProposal() (*pb.SignedProposal, error) + func (s *ChaincodeStub) GetState(key string) ([]byte, error) + func (s *ChaincodeStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (StateQueryIteratorInterface, error) + func (s *ChaincodeStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (s *ChaincodeStub) GetStateByRange(startKey, endKey string) (StateQueryIteratorInterface, error) + func (s *ChaincodeStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (s *ChaincodeStub) GetStateValidationParameter(key string) ([]byte, error) + func (s *ChaincodeStub) GetStringArgs() []string + func (s *ChaincodeStub) GetTransient() (map[string][]byte, error) + func (s *ChaincodeStub) GetTxID() string + func (s *ChaincodeStub) GetTxTimestamp() (*timestamp.Timestamp, error) + func (s *ChaincodeStub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response + func (s *ChaincodeStub) PutPrivateData(collection string, key string, value []byte) error + func (s *ChaincodeStub) PutState(key string, value []byte) error + func (s *ChaincodeStub) SetEvent(name string, payload []byte) error + func (s *ChaincodeStub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error + func (s *ChaincodeStub) SetStateValidationParameter(key string, ep []byte) error + func (s *ChaincodeStub) SplitCompositeKey(compositeKey string) (string, []string, error) + type ChaincodeStubInterface interface + CreateCompositeKey func(objectType string, attributes []string) (string, error) + DelPrivateData func(collection, key string) error + DelState func(key string) error + GetArgs func() [][]byte + GetArgsSlice func() ([]byte, error) + GetBinding func() ([]byte, error) + GetChannelID func() string + GetCreator func() ([]byte, error) + GetDecorations func() map[string][]byte + GetFunctionAndParameters func() (string, []string) + GetHistoryForKey func(key string) (HistoryQueryIteratorInterface, error) + GetPrivateData func(collection, key string) ([]byte, error) + GetPrivateDataByPartialCompositeKey func(collection, objectType string, keys []string) (StateQueryIteratorInterface, error) + GetPrivateDataByRange func(collection, startKey, endKey string) (StateQueryIteratorInterface, error) + GetPrivateDataHash func(collection, key string) ([]byte, error) + GetPrivateDataQueryResult func(collection, query string) (StateQueryIteratorInterface, error) + GetPrivateDataValidationParameter func(collection, key string) ([]byte, error) + GetQueryResult func(query string) (StateQueryIteratorInterface, error) + GetQueryResultWithPagination func(query string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + GetSignedProposal func() (*pb.SignedProposal, error) + GetState func(key string) ([]byte, error) + GetStateByPartialCompositeKey func(objectType string, keys []string) (StateQueryIteratorInterface, error) + GetStateByPartialCompositeKeyWithPagination func(objectType string, keys []string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + GetStateByRange func(startKey, endKey string) (StateQueryIteratorInterface, error) + GetStateByRangeWithPagination func(startKey, endKey string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + GetStateValidationParameter func(key string) ([]byte, error) + GetStringArgs func() []string + GetTransient func() (map[string][]byte, error) + GetTxID func() string + GetTxTimestamp func() (*timestamp.Timestamp, error) + InvokeChaincode func(chaincodeName string, args [][]byte, channel string) pb.Response + PutPrivateData func(collection string, key string, value []byte) error + PutState func(key string, value []byte) error + SetEvent func(name string, payload []byte) error + SetPrivateDataValidationParameter func(collection, key string, ep []byte) error + SetStateValidationParameter func(key string, ep []byte) error + SplitCompositeKey func(compositeKey string) (string, []string, error) + type ClientStream interface + CloseSend func() error + type CommonIterator struct + func (iter *CommonIterator) Close() error + func (iter *CommonIterator) HasNext() bool + type CommonIteratorInterface interface + Close func() error + HasNext func() bool + type Handler struct + type HistoryQueryIterator struct + func (iter *HistoryQueryIterator) Next() (*queryresult.KeyModification, error) + type HistoryQueryIteratorInterface interface + Next func() (*queryresult.KeyModification, error) + type MockQueryIteratorInterface interface + type PeerChaincodeStream interface + Recv func() (*pb.ChaincodeMessage, error) + Send func(*pb.ChaincodeMessage) error + type StateQueryIterator struct + func (iter *StateQueryIterator) Next() (*queryresult.KV, error) + type StateQueryIteratorInterface interface + Next func() (*queryresult.KV, error) + type TLSProperties struct + Cert []byte + ClientCACerts []byte + Disabled bool + Key []byte