Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckForCommitHandler ¶
type CheckForCommitHandler struct { ShouldCommit bool // contains filtered or unexported fields }
CheckForCommitHandler for checking need to commit
func NewCheckForCommitHandler ¶
func NewCheckForCommitHandler(ignoreNameSpaces []api.Namespace, commitType api.CommitType, next ...invoke.Handler) *CheckForCommitHandler
NewCheckForCommitHandler returns a handler that check if there is need to commit
func (*CheckForCommitHandler) Handle ¶
func (h *CheckForCommitHandler) Handle(requestContext *invoke.RequestContext, clientContext *invoke.ClientContext)
Handle for endorsing transactions
type Commit ¶
type Commit struct {
// contains filtered or unexported fields
}
Commit is a handler that commits the endorsement responses to the Orderer and aoptionally waits for a block event that indicates the status of the transaction.
func NewCommitHandler ¶
NewCommitHandler returns a new commit handler
func (*Commit) Handle ¶
func (c *Commit) Handle(requestContext *invoke.RequestContext, clientContext *invoke.ClientContext)
Handle handles the commit
type PreEndorsedHandler ¶
type PreEndorsedHandler struct {
// contains filtered or unexported fields
}
PreEndorsedHandler holds the Endorsement response
func NewPreEndorsedHandler ¶
func NewPreEndorsedHandler(endorsementResponse *channel.Response, next ...invoke.Handler) *PreEndorsedHandler
NewPreEndorsedHandler returns a handler that populates the Endorsement Response to the request context
func (*PreEndorsedHandler) Handle ¶
func (i *PreEndorsedHandler) Handle(requestContext *invoke.RequestContext, clientContext *invoke.ClientContext)
Handle for endorsing transactions
Click to show internal directories.
Click to hide internal directories.