Documentation ¶
Overview ¶
Package commit provides an implementation for finding transaction commit status that is specific to the Gateway embedded within a peer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
Finder is used to obtain transaction status.
func (*Finder) TransactionStatus ¶
func (finder *Finder) TransactionStatus(ctx context.Context, channelName string, transactionID string) (*Status, error)
TransactionStatus provides status of a specified transaction on a given channel. If the transaction has already committed, the status is returned immediately; otherwise this call blocks waiting for the transaction to be committed or the context to be cancelled.
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier provides notification of transaction commits.
func NewNotifier ¶
Click to show internal directories.
Click to hide internal directories.