handler

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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

func NewCommitHandler(asyncCommit bool, next ...invoke.Handler) *Commit

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL