Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type ChannelState struct + func (cs *ChannelState) FetchState() (endorsement.State, error) + type ChannelStateRetriever interface + NewQueryCreator func(channel string) (QueryCreator, error) + type CollectionConfigRetriever interface + GetState func(namespace string, key string) ([]byte, error) + type Context struct + ChaincodeID *pb.ChaincodeID + Channel string + Event []byte + PluginName string + Proposal *pb.Proposal + Response *pb.Response + SignedProposal *pb.SignedProposal + SimRes []byte + TxID string + Visibility []byte + func (c Context) String() string + type Endorser struct + Metrics *EndorserMetrics + PlatformRegistry *platforms.Registry + func NewEndorserServer(privDist privateDataDistributor, s Support, pr *platforms.Registry, ...) *Endorser + func (e *Endorser) ProcessProposal(ctx context.Context, signedProp *pb.SignedProposal) (*pb.ProposalResponse, error) + func (e *Endorser) SanitizeUserCDS(userCDS *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error) + func (e *Endorser) SimulateProposal(txParams *ccprovider.TransactionParams, cid *pb.ChaincodeID) (ccprovider.ChaincodeDefinition, *pb.Response, []byte, *pb.ChaincodeEvent, ...) + type EndorserMetrics struct + DuplicateTxsFailure metrics.Counter + EndorsementsFailed metrics.Counter + InitFailed metrics.Counter + ProposalACLCheckFailed metrics.Counter + ProposalDuration metrics.Histogram + ProposalValidationFailed metrics.Counter + ProposalsReceived metrics.Counter + SuccessfulProposals metrics.Counter + func NewEndorserMetrics(p metrics.Provider) *EndorserMetrics + type MapBasedPluginMapper map[string]endorsement.PluginFactory + func (m MapBasedPluginMapper) PluginFactoryByName(name PluginName) endorsement.PluginFactory + type PluginEndorser struct + func NewPluginEndorser(ps *PluginSupport) *PluginEndorser + func (pe *PluginEndorser) EndorseWithPlugin(ctx Context) (*pb.ProposalResponse, error) + type PluginMapper interface + PluginFactoryByName func(name PluginName) endorsement.PluginFactory + type PluginName string + type PluginSupport struct + type PvtRWSetAssembler interface + AssemblePvtRWSet func(privData *rwset.TxPvtReadWriteSet, txsim CollectionConfigRetriever) (*transientstore.TxPvtReadWriteSetWithConfigInfo, error) + type QueryCreator interface + NewQueryExecutor func() (ledger.QueryExecutor, error) + type StateContext struct + func (sc *StateContext) GetTransientByTXID(txID string) ([]*rwset.TxPvtReadWriteSet, error) + type Support interface + CheckACL func(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, ...) error + CheckInstantiationPolicy func(name, version string, cd ccprovider.ChaincodeDefinition) error + EndorseWithPlugin func(ctx Context) (*pb.ProposalResponse, error) + Execute func(txParams *ccprovider.TransactionParams, cid, name, version, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error) + ExecuteLegacyInit func(txParams *ccprovider.TransactionParams, cid, name, version, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error) + GetApplicationConfig func(cid string) (channelconfig.Application, bool) + GetChaincodeDefinition func(chaincodeID string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error) + GetChaincodeDeploymentSpecFS func(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error) + GetHistoryQueryExecutor func(ledgername string) (ledger.HistoryQueryExecutor, error) + GetLedgerHeight func(channelID string) (uint64, error) + GetTransactionByID func(chid, txID string) (*pb.ProcessedTransaction, error) + GetTxSimulator func(ledgername string, txid string) (ledger.TxSimulator, error) + IsJavaCC func(buf []byte) (bool, error) + IsSysCC func(name string) bool + IsSysCCAndNotInvokableExternal func(name string) bool + NewQueryCreator func(channel string) (QueryCreator, error) + type SupportImpl struct + ACLProvider aclmgmt.ACLProvider + ChaincodeSupport *chaincode.ChaincodeSupport + Peer peer.Operations + PeerSupport peer.Support + SysCCProvider *scc.Provider + func (s *SupportImpl) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, ...) error + func (s *SupportImpl) CheckInstantiationPolicy(name, version string, cd ccprovider.ChaincodeDefinition) error + func (s *SupportImpl) Execute(txParams *ccprovider.TransactionParams, cid, name, version, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error) + func (s *SupportImpl) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, cid, name, version, txid string, ...) (*pb.Response, *pb.ChaincodeEvent, error) + func (s *SupportImpl) GetApplicationConfig(cid string) (channelconfig.Application, bool) + func (s *SupportImpl) GetChaincodeDefinition(chaincodeName string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error) + func (s *SupportImpl) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error) + func (s *SupportImpl) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error) + func (s *SupportImpl) GetLedgerHeight(channelID string) (uint64, error) + func (s *SupportImpl) GetTransactionByID(chid, txID string) (*pb.ProcessedTransaction, error) + func (s *SupportImpl) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error) + func (s *SupportImpl) IsJavaCC(buf []byte) (bool, error) + func (s *SupportImpl) IsSysCC(name string) bool + func (s *SupportImpl) IsSysCCAndNotInvokableExternal(name string) bool + func (s *SupportImpl) NewQueryCreator(channel string) (QueryCreator, error) + func (s *SupportImpl) SigningIdentityForRequest(*pb.SignedProposal) (SigningIdentity, error) + type TransientStoreRetriever interface + StoreForChannel func(channel string) transientstore.Store