Documentation ¶
Index ¶
- Variables
- type TxServiceImpl
- func (txs *TxServiceImpl) CommitOnlyTransaction(rwSetIgnoreNameSpace []api.Namespace, commitType api.CommitType, ...) (*channel.Response, bool, errors.Error)
- func (txs *TxServiceImpl) CommitTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer) (*channel.Response, bool, errors.Error)
- func (txs *TxServiceImpl) EndorseTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer, ...) (*channel.Response, errors.Error)
- func (txs *TxServiceImpl) GetDiscoveredPeer(url string) (fabApi.Peer, error)
- func (txs *TxServiceImpl) GetLocalPeer() (fabApi.Peer, error)
- func (txs *TxServiceImpl) InvokeSDKHandler(handler invoke.Handler, request channel.Request, ...) (*channel.Response, error)
- func (txs *TxServiceImpl) VerifyEndorsements(signedProposal *pb.SignedProposal, proposalResponses []*pb.ProposalResponse) errors.Error
- func (txs *TxServiceImpl) VerifyTxnProposalSignature(signedProposal *pb.SignedProposal) errors.Error
Constants ¶
This section is empty.
Variables ¶
View Source
var PeerConfigPath = ""
PeerConfigPath use for testing
Functions ¶
This section is empty.
Types ¶
type TxServiceImpl ¶
type TxServiceImpl struct { FcClient api.Client // Callback is invoked after the endorsement // phase of EndorseAndCommitTransaction // (Used in unit tests.) Callback api.EndorsedCallback // contains filtered or unexported fields }
TxServiceImpl used to create transaction service
func Get ¶
func Get(channelID string) (*TxServiceImpl, errors.Error)
Get will return txService to caller
func (*TxServiceImpl) CommitOnlyTransaction ¶ added in v0.4.3
func (txs *TxServiceImpl) CommitOnlyTransaction(rwSetIgnoreNameSpace []api.Namespace, commitType api.CommitType, endorserResponse *channel.Response) (*channel.Response, bool, errors.Error)
CommitOnlyTransaction just commits the data without endorsement
func (*TxServiceImpl) CommitTransaction ¶
func (txs *TxServiceImpl) CommitTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer) (*channel.Response, bool, errors.Error)
CommitTransaction use to comit the transaction
func (*TxServiceImpl) EndorseTransaction ¶
func (txs *TxServiceImpl) EndorseTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer, options ...endorse.RequestOption) (*channel.Response, errors.Error)
EndorseTransaction use to endorse the transaction
func (*TxServiceImpl) GetDiscoveredPeer ¶ added in v0.2.5
func (txs *TxServiceImpl) GetDiscoveredPeer(url string) (fabApi.Peer, error)
GetDiscoveredPeer the peer from the Discovery service that matches the given URL Returns error if no matching peer is found
func (*TxServiceImpl) GetLocalPeer ¶ added in v0.2.6
func (txs *TxServiceImpl) GetLocalPeer() (fabApi.Peer, error)
GetLocalPeer to returns target peer for given peer config
func (*TxServiceImpl) InvokeSDKHandler ¶ added in v0.4.3
func (txs *TxServiceImpl) InvokeSDKHandler(handler invoke.Handler, request channel.Request, options ...channel.RequestOption) (*channel.Response, error)
InvokeSDKHandler invoke sdk handler
func (*TxServiceImpl) VerifyEndorsements ¶ added in v0.4.3
func (txs *TxServiceImpl) VerifyEndorsements(signedProposal *pb.SignedProposal, proposalResponses []*pb.ProposalResponse) errors.Error
VerifyEndorsements use to verify endorsements
func (*TxServiceImpl) VerifyTxnProposalSignature ¶
func (txs *TxServiceImpl) VerifyTxnProposalSignature(signedProposal *pb.SignedProposal) errors.Error
VerifyTxnProposalSignature use to verify transaction proposal signature
Click to show internal directories.
Click to hide internal directories.