Documentation
¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func CreateCompositeKey(objectType string, attributes []string) (string, error)
- func Error(msg string) pb.Response
- func IsEnabledForLogLevel(logLevel string) bool
- func SetLoggingLevel(level LoggingLevel)
- func SetupChaincodeLogging()
- func Start(cc Chaincode) error
- func StartInProc(chaincodename string, stream PeerChaincodeStream, cc Chaincode) error
- func Success(payload []byte) pb.Response
- type Chaincode
- type ChaincodeLogger
- func (c *ChaincodeLogger) Critical(args ...interface{})
- func (c *ChaincodeLogger) Criticalf(format string, args ...interface{})
- func (c *ChaincodeLogger) Debug(args ...interface{})
- func (c *ChaincodeLogger) Debugf(format string, args ...interface{})
- func (c *ChaincodeLogger) Error(args ...interface{})
- func (c *ChaincodeLogger) Errorf(format string, args ...interface{})
- func (c *ChaincodeLogger) Info(args ...interface{})
- func (c *ChaincodeLogger) Infof(format string, args ...interface{})
- func (c *ChaincodeLogger) IsEnabledFor(level LoggingLevel) bool
- func (c *ChaincodeLogger) Notice(args ...interface{})
- func (c *ChaincodeLogger) Noticef(format string, args ...interface{})
- func (c *ChaincodeLogger) SetLevel(level LoggingLevel)
- func (c *ChaincodeLogger) Warning(args ...interface{})
- func (c *ChaincodeLogger) Warningf(format string, args ...interface{})
- type ChaincodeStub
- 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
- type CommonIterator
- type CommonIteratorInterface
- type Handler
- type HistoryQueryIterator
- type HistoryQueryIteratorInterface
- type LoggingLevel
- type MockQueryIteratorInterface
- type MockStateRangeQueryIterator
- type MockStub
- func (stub *MockStub) CreateCompositeKey(objectType string, attributes []string) (string, error)
- func (stub *MockStub) DelPrivateData(collection string, key string) error
- func (stub *MockStub) DelState(key string) error
- func (stub *MockStub) GetArgs() [][]byte
- func (stub *MockStub) GetArgsSlice() ([]byte, error)
- func (stub *MockStub) GetBinding() ([]byte, error)
- func (stub *MockStub) GetChannelID() string
- func (stub *MockStub) GetCreator() ([]byte, error)
- func (stub *MockStub) GetDecorations() map[string][]byte
- func (stub *MockStub) GetFunctionAndParameters() (function string, params []string)
- func (stub *MockStub) GetHistoryForKey(key string) (HistoryQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateData(collection string, key string) ([]byte, error)
- func (stub *MockStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (StateQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateDataByRange(collection, startKey, endKey string) (StateQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateDataHash(collection, key string) ([]byte, error)
- func (stub *MockStub) GetPrivateDataQueryResult(collection, query string) (StateQueryIteratorInterface, error)
- func (stub *MockStub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error)
- func (stub *MockStub) GetQueryResult(query string) (StateQueryIteratorInterface, error)
- func (stub *MockStub) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
- func (stub *MockStub) GetSignedProposal() (*pb.SignedProposal, error)
- func (stub *MockStub) GetState(key string) ([]byte, error)
- func (stub *MockStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (StateQueryIteratorInterface, error)
- func (stub *MockStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
- func (stub *MockStub) GetStateByRange(startKey, endKey string) (StateQueryIteratorInterface, error)
- func (stub *MockStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
- func (stub *MockStub) GetStateValidationParameter(key string) ([]byte, error)
- func (stub *MockStub) GetStringArgs() []string
- func (stub *MockStub) GetTransient() (map[string][]byte, error)
- func (stub *MockStub) GetTxID() string
- func (stub *MockStub) GetTxTimestamp() (*timestamp.Timestamp, error)
- func (stub *MockStub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response
- func (stub *MockStub) MockInit(uuid string, args [][]byte) pb.Response
- func (stub *MockStub) MockInvoke(uuid string, args [][]byte) pb.Response
- func (stub *MockStub) MockInvokeWithSignedProposal(uuid string, args [][]byte, sp *pb.SignedProposal) pb.Response
- func (stub *MockStub) MockPeerChaincode(invokableChaincodeName string, otherStub *MockStub, channel string)
- func (stub *MockStub) MockTransactionEnd(uuid string)
- func (stub *MockStub) MockTransactionStart(txid string)
- func (stub *MockStub) PutPrivateData(collection string, key string, value []byte) error
- func (stub *MockStub) PutState(key string, value []byte) error
- func (stub *MockStub) SetEvent(name string, payload []byte) error
- func (stub *MockStub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error
- func (stub *MockStub) SetStateValidationParameter(key string, ep []byte) error
- func (stub *MockStub) SplitCompositeKey(compositeKey string) (string, []string, error)
- type PeerChaincodeStream
- type SendPanicFailure
- type StateQueryIterator
- type StateQueryIteratorInterface
Constants ¶
View Source
const ( LogDebug = LoggingLevel(logging.DEBUG) LogInfo = LoggingLevel(logging.INFO) LogNotice = LoggingLevel(logging.NOTICE) LogWarning = LoggingLevel(logging.WARNING) LogError = LoggingLevel(logging.ERROR) LogCritical = LoggingLevel(logging.CRITICAL) )
View Source
const ( STATE_QUERY_RESULT resultType = iota + 1 HISTORY_QUERY_RESULT )
View Source
const ( LogDebug = LoggingLevel(logging.DEBUG) LogInfo = LoggingLevel(logging.INFO) LogNotice = LoggingLevel(logging.NOTICE) LogWarning = LoggingLevel(logging.WARNING) LogError = LoggingLevel(logging.ERROR) LogCritical = LoggingLevel(logging.CRITICAL) )
View Source
const ( OK = 200 ERRORTHRESHOLD = 400 ERROR = 500 )
View Source
const ( STATE_QUERY_RESULT resultType = iota + 1 HISTORY_QUERY_RESULT )
Variables ¶
This section is empty.
Functions ¶
func CreateCompositeKey ¶
func IsEnabledForLogLevel ¶
func SetLoggingLevel ¶
func SetLoggingLevel(level LoggingLevel)
func SetupChaincodeLogging ¶
func SetupChaincodeLogging()
func StartInProc ¶
func StartInProc(chaincodename string, stream PeerChaincodeStream, cc Chaincode) error
Types ¶
type Chaincode ¶
type Chaincode interface {
Init(stub ChaincodeStubInterface) pb.Response
Invoke(stub ChaincodeStubInterface) pb.Response
}
type ChaincodeLogger ¶
type ChaincodeLogger struct {
// contains filtered or unexported fields
}
func (*ChaincodeLogger) Criticalf ¶
func (c *ChaincodeLogger) Criticalf(format string, args ...interface{})
func (*ChaincodeLogger) Debugf ¶
func (c *ChaincodeLogger) Debugf(format string, args ...interface{})
func (*ChaincodeLogger) Errorf ¶
func (c *ChaincodeLogger) Errorf(format string, args ...interface{})
func (*ChaincodeLogger) IsEnabledFor ¶
func (c *ChaincodeLogger) IsEnabledFor(level LoggingLevel) bool
type ChaincodeStub ¶
type ChaincodeStub struct {
TxID string
ChannelId string
// contains filtered or unexported fields
}
func (*ChaincodeStub) CreateCompositeKey ¶
func (s *ChaincodeStub) CreateCompositeKey(objectType string, attributes []string) (string, error)
func (*ChaincodeStub) DelPrivateData ¶
func (s *ChaincodeStub) DelPrivateData(collection string, key string) error
func (*ChaincodeStub) DelState ¶
func (s *ChaincodeStub) DelState(key string) error
func (*ChaincodeStub) GetArgs ¶
func (s *ChaincodeStub) GetArgs() [][]byte
func (*ChaincodeStub) GetArgsSlice ¶
func (s *ChaincodeStub) GetArgsSlice() ([]byte, error)
func (*ChaincodeStub) GetBinding ¶
func (s *ChaincodeStub) GetBinding() ([]byte, error)
func (*ChaincodeStub) GetChannelID ¶
func (s *ChaincodeStub) GetChannelID() string
func (*ChaincodeStub) GetCreator ¶
func (s *ChaincodeStub) GetCreator() ([]byte, error)
func (*ChaincodeStub) GetDecorations ¶
func (s *ChaincodeStub) GetDecorations() map[string][]byte
func (*ChaincodeStub) GetFunctionAndParameters ¶
func (s *ChaincodeStub) GetFunctionAndParameters() (function string, params []string)
func (*ChaincodeStub) GetHistoryForKey ¶
func (s *ChaincodeStub) GetHistoryForKey(key string) (HistoryQueryIteratorInterface, error)
func (*ChaincodeStub) GetPrivateData ¶
func (s *ChaincodeStub) GetPrivateData(collection string, key string) ([]byte, error)
func (*ChaincodeStub) GetPrivateDataByPartialCompositeKey ¶
func (s *ChaincodeStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (StateQueryIteratorInterface, error)
func (*ChaincodeStub) GetPrivateDataByRange ¶
func (s *ChaincodeStub) GetPrivateDataByRange(collection, startKey, endKey string) (StateQueryIteratorInterface, error)
func (*ChaincodeStub) GetPrivateDataHash ¶
func (s *ChaincodeStub) GetPrivateDataHash(collection string, key string) ([]byte, error)
func (*ChaincodeStub) GetPrivateDataQueryResult ¶
func (s *ChaincodeStub) GetPrivateDataQueryResult(collection, query string) (StateQueryIteratorInterface, error)
func (*ChaincodeStub) GetPrivateDataValidationParameter ¶
func (s *ChaincodeStub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error)
func (*ChaincodeStub) GetQueryResult ¶
func (s *ChaincodeStub) GetQueryResult(query string) (StateQueryIteratorInterface, error)
func (*ChaincodeStub) GetQueryResultWithPagination ¶
func (s *ChaincodeStub) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*ChaincodeStub) GetSignedProposal ¶
func (s *ChaincodeStub) GetSignedProposal() (*pb.SignedProposal, error)
func (*ChaincodeStub) GetStateByPartialCompositeKey ¶
func (s *ChaincodeStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (StateQueryIteratorInterface, error)
func (*ChaincodeStub) GetStateByPartialCompositeKeyWithPagination ¶
func (s *ChaincodeStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*ChaincodeStub) GetStateByRange ¶
func (s *ChaincodeStub) GetStateByRange(startKey, endKey string) (StateQueryIteratorInterface, error)
func (*ChaincodeStub) GetStateByRangeWithPagination ¶
func (s *ChaincodeStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*ChaincodeStub) GetStateValidationParameter ¶
func (s *ChaincodeStub) GetStateValidationParameter(key string) ([]byte, error)
func (*ChaincodeStub) GetStringArgs ¶
func (s *ChaincodeStub) GetStringArgs() []string
func (*ChaincodeStub) GetTransient ¶
func (s *ChaincodeStub) GetTransient() (map[string][]byte, error)
func (*ChaincodeStub) GetTxID ¶
func (s *ChaincodeStub) GetTxID() string
func (*ChaincodeStub) GetTxTimestamp ¶
func (s *ChaincodeStub) GetTxTimestamp() (*timestamp.Timestamp, error)
func (*ChaincodeStub) InvokeChaincode ¶
func (*ChaincodeStub) PutPrivateData ¶
func (s *ChaincodeStub) PutPrivateData(collection string, key string, value []byte) error
func (*ChaincodeStub) SetEvent ¶
func (s *ChaincodeStub) SetEvent(name string, payload []byte) error
func (*ChaincodeStub) SetPrivateDataValidationParameter ¶
func (s *ChaincodeStub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error
func (*ChaincodeStub) SetStateValidationParameter ¶
func (s *ChaincodeStub) SetStateValidationParameter(key string, ep []byte) error
func (*ChaincodeStub) SplitCompositeKey ¶
func (s *ChaincodeStub) SplitCompositeKey(compositeKey string) (string, []string, error)
type ChaincodeStubInterface ¶
type ChaincodeStubInterface interface {
GetArgs() [][]byte
GetStringArgs() []string
GetFunctionAndParameters() (string, []string)
GetArgsSlice() ([]byte, error)
GetTxID() string
GetChannelID() string
InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response
GetState(key string) ([]byte, error)
PutState(key string, value []byte) error
DelState(key string) error
SetStateValidationParameter(key string, ep []byte) error
GetStateValidationParameter(key string) ([]byte, error)
GetStateByRange(startKey, endKey string) (StateQueryIteratorInterface, error)
GetStateByRangeWithPagination(startKey, endKey string, pageSize int32,
bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
GetStateByPartialCompositeKey(objectType string, keys []string) (StateQueryIteratorInterface, error)
GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string,
pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
CreateCompositeKey(objectType string, attributes []string) (string, error)
SplitCompositeKey(compositeKey string) (string, []string, error)
GetQueryResult(query string) (StateQueryIteratorInterface, error)
GetQueryResultWithPagination(query string, pageSize int32,
bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
GetHistoryForKey(key string) (HistoryQueryIteratorInterface, error)
GetPrivateData(collection, key string) ([]byte, error)
GetPrivateDataHash(collection, key string) ([]byte, error)
PutPrivateData(collection string, key string, value []byte) error
DelPrivateData(collection, key string) error
SetPrivateDataValidationParameter(collection, key string, ep []byte) error
GetPrivateDataValidationParameter(collection, key string) ([]byte, error)
GetPrivateDataByRange(collection, startKey, endKey string) (StateQueryIteratorInterface, error)
GetPrivateDataByPartialCompositeKey(collection, objectType string, keys []string) (StateQueryIteratorInterface, error)
GetPrivateDataQueryResult(collection, query string) (StateQueryIteratorInterface, error)
GetCreator() ([]byte, error)
GetTransient() (map[string][]byte, error)
GetBinding() ([]byte, error)
GetDecorations() map[string][]byte
GetSignedProposal() (*pb.SignedProposal, error)
GetTxTimestamp() (*timestamp.Timestamp, error)
SetEvent(name string, payload []byte) error
}
type CommonIterator ¶
type CommonIterator struct {
// contains filtered or unexported fields
}
func (*CommonIterator) Close ¶
func (iter *CommonIterator) Close() error
func (*CommonIterator) HasNext ¶
func (iter *CommonIterator) HasNext() bool
type CommonIteratorInterface ¶
type HistoryQueryIterator ¶
type HistoryQueryIterator struct {
*CommonIterator
}
func (*HistoryQueryIterator) Next ¶
func (iter *HistoryQueryIterator) Next() (*queryresult.KeyModification, error)
type HistoryQueryIteratorInterface ¶
type HistoryQueryIteratorInterface interface {
CommonIteratorInterface
Next() (*queryresult.KeyModification, error)
}
type LoggingLevel ¶
type MockQueryIteratorInterface ¶
type MockQueryIteratorInterface interface {
StateQueryIteratorInterface
}
type MockStateRangeQueryIterator ¶
type MockStateRangeQueryIterator struct {
Closed bool
Stub *MockStub
StartKey string
EndKey string
Current *list.Element
}
func NewMockStateRangeQueryIterator ¶
func NewMockStateRangeQueryIterator(stub *MockStub, startKey string, endKey string) *MockStateRangeQueryIterator
func (*MockStateRangeQueryIterator) Close ¶
func (iter *MockStateRangeQueryIterator) Close() error
func (*MockStateRangeQueryIterator) HasNext ¶
func (iter *MockStateRangeQueryIterator) HasNext() bool
func (*MockStateRangeQueryIterator) Next ¶
func (iter *MockStateRangeQueryIterator) Next() (*queryresult.KV, error)
func (*MockStateRangeQueryIterator) Print ¶
func (iter *MockStateRangeQueryIterator) Print()
type MockStub ¶
type MockStub struct {
Name string
State map[string][]byte
Keys *list.List
Invokables map[string]*MockStub
TxID string
TxTimestamp *timestamp.Timestamp
ChannelID string
PvtState map[string]map[string][]byte
EndorsementPolicies map[string]map[string][]byte
ChaincodeEventsChannel chan *pb.ChaincodeEvent
Creator []byte
Decorations map[string][]byte
// contains filtered or unexported fields
}
func NewMockStub ¶
func (*MockStub) CreateCompositeKey ¶
func (*MockStub) DelPrivateData ¶
func (*MockStub) GetArgsSlice ¶
func (*MockStub) GetBinding ¶
func (*MockStub) GetChannelID ¶
func (*MockStub) GetCreator ¶
func (*MockStub) GetDecorations ¶
func (*MockStub) GetFunctionAndParameters ¶
func (*MockStub) GetHistoryForKey ¶
func (stub *MockStub) GetHistoryForKey(key string) (HistoryQueryIteratorInterface, error)
func (*MockStub) GetPrivateData ¶
func (*MockStub) GetPrivateDataByPartialCompositeKey ¶
func (stub *MockStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (StateQueryIteratorInterface, error)
func (*MockStub) GetPrivateDataByRange ¶
func (stub *MockStub) GetPrivateDataByRange(collection, startKey, endKey string) (StateQueryIteratorInterface, error)
func (*MockStub) GetPrivateDataHash ¶
func (*MockStub) GetPrivateDataQueryResult ¶
func (stub *MockStub) GetPrivateDataQueryResult(collection, query string) (StateQueryIteratorInterface, error)
func (*MockStub) GetPrivateDataValidationParameter ¶
func (*MockStub) GetQueryResult ¶
func (stub *MockStub) GetQueryResult(query string) (StateQueryIteratorInterface, error)
func (*MockStub) GetQueryResultWithPagination ¶
func (stub *MockStub) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*MockStub) GetSignedProposal ¶
func (stub *MockStub) GetSignedProposal() (*pb.SignedProposal, error)
func (*MockStub) GetStateByPartialCompositeKey ¶
func (stub *MockStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (StateQueryIteratorInterface, error)
func (*MockStub) GetStateByPartialCompositeKeyWithPagination ¶
func (stub *MockStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*MockStub) GetStateByRange ¶
func (stub *MockStub) GetStateByRange(startKey, endKey string) (StateQueryIteratorInterface, error)
func (*MockStub) GetStateByRangeWithPagination ¶
func (stub *MockStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)
func (*MockStub) GetStateValidationParameter ¶
func (*MockStub) GetStringArgs ¶
func (*MockStub) GetTxTimestamp ¶
func (*MockStub) InvokeChaincode ¶
func (*MockStub) MockInvoke ¶
func (*MockStub) MockInvokeWithSignedProposal ¶
func (*MockStub) MockPeerChaincode ¶
func (*MockStub) MockTransactionEnd ¶
func (*MockStub) MockTransactionStart ¶
func (*MockStub) PutPrivateData ¶
func (*MockStub) SetPrivateDataValidationParameter ¶
func (*MockStub) SetStateValidationParameter ¶
type PeerChaincodeStream ¶
type PeerChaincodeStream interface {
Send(*pb.ChaincodeMessage) error
Recv() (*pb.ChaincodeMessage, error)
CloseSend() error
}
type SendPanicFailure ¶
type SendPanicFailure string
func (SendPanicFailure) Error ¶
func (e SendPanicFailure) Error() string
type StateQueryIterator ¶
type StateQueryIterator struct {
*CommonIterator
}
func (*StateQueryIterator) Next ¶
func (iter *StateQueryIterator) Next() (*queryresult.KV, error)
type StateQueryIteratorInterface ¶
type StateQueryIteratorInterface interface {
CommonIteratorInterface
Next() (*queryresult.KV, error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.