Documentation ¶
Overview ¶
Copyright IBM Corp All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- type ApproverInitView
- type ApproverInitViewFactory
- type ApproverView
- type Create
- type CreateIOUResponderView
- type CreateIOUView
- type CreateIOUViewFactory
- type FinalityListener
- type Query
- type QueryView
- type QueryViewFactory
- type Update
- type UpdateIOUResponderView
- type UpdateIOUView
- type UpdateIOUViewFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApproverInitView ¶
type ApproverInitView struct{}
type ApproverInitViewFactory ¶
type ApproverInitViewFactory struct{}
type ApproverView ¶
type ApproverView struct{}
type Create ¶
type Create struct { // Identity is the label of the the borrower's identity to use. // Empty means the default identity. Identity string // Amount the borrower owes the lender Amount uint // Lender is the identity of the lender's FSC node Lender view.Identity // Approver is the identity of the approver's FSC node Approver view.Identity }
Create contains the input to create an IOU state
type CreateIOUResponderView ¶
type CreateIOUResponderView struct{}
type CreateIOUView ¶
type CreateIOUView struct {
Create
}
type CreateIOUViewFactory ¶
type CreateIOUViewFactory struct{}
type FinalityListener ¶ added in v0.4.0
type FinalityListener struct { ExpectedTxID string ExpectedVC fabric.ValidationCode WaitGroup *sync.WaitGroup }
func NewFinalityListener ¶ added in v0.4.0
func NewFinalityListener(expectedTxID string, expectedVC fabric.ValidationCode, waitGroup *sync.WaitGroup) *FinalityListener
func (*FinalityListener) OnStatus ¶ added in v0.4.0
func (t *FinalityListener) OnStatus(_ context.Context, txID driver.TxID, vc fabric.ValidationCode, _ string)
type QueryViewFactory ¶
type QueryViewFactory struct{}
type Update ¶
type Update struct { // LinearID is the unique identifier of the IOU state LinearID string // Amount is the new amount. It should smaller than the current amount Amount uint // Approver is the identity of the approver's FSC node Approver view.Identity }
Update contains the input to update an IOU state
type UpdateIOUResponderView ¶
type UpdateIOUResponderView struct{}
type UpdateIOUView ¶
type UpdateIOUView struct {
Update
}
type UpdateIOUViewFactory ¶
type UpdateIOUViewFactory struct{}
Click to show internal directories.
Click to hide internal directories.