views

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright IBM Corp All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproverInitView

type ApproverInitView struct{}

func (*ApproverInitView) Call

func (a *ApproverInitView) Call(context view.Context) (interface{}, error)

type ApproverInitViewFactory

type ApproverInitViewFactory struct{}

func (*ApproverInitViewFactory) NewView

func (c *ApproverInitViewFactory) NewView(in []byte) (view.View, error)

type ApproverView

type ApproverView struct{}

func (*ApproverView) Call

func (i *ApproverView) Call(context view.Context) (interface{}, error)

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{}

func (*CreateIOUResponderView) Call

func (i *CreateIOUResponderView) Call(context view.Context) (interface{}, error)

type CreateIOUView

type CreateIOUView struct {
	Create
}

func (*CreateIOUView) Call

func (i *CreateIOUView) Call(context view.Context) (interface{}, error)

type CreateIOUViewFactory

type CreateIOUViewFactory struct{}

func (*CreateIOUViewFactory) NewView

func (c *CreateIOUViewFactory) NewView(in []byte) (view.View, error)

type Query

type Query struct {
	LinearID string
}

type QueryView

type QueryView struct {
	Query
}

func (*QueryView) Call

func (q *QueryView) Call(context view.Context) (interface{}, error)

type QueryViewFactory

type QueryViewFactory struct{}

func (*QueryViewFactory) NewView

func (c *QueryViewFactory) NewView(in []byte) (view.View, error)

type TxStatusChangeListener

type TxStatusChangeListener struct {
	ExpectedTxID string
	WG           *sync.WaitGroup
}

func NewTxStatusChangeListener

func NewTxStatusChangeListener(expectedTxID string, WG *sync.WaitGroup) *TxStatusChangeListener

func (*TxStatusChangeListener) OnStatusChange

func (t *TxStatusChangeListener) OnStatusChange(txID string, status int) error

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{}

func (*UpdateIOUResponderView) Call

func (i *UpdateIOUResponderView) Call(context view.Context) (interface{}, error)

type UpdateIOUView

type UpdateIOUView struct {
	Update
}

func (UpdateIOUView) Call

func (u UpdateIOUView) Call(context view.Context) (interface{}, error)

type UpdateIOUViewFactory

type UpdateIOUViewFactory struct{}

func (*UpdateIOUViewFactory) NewView

func (c *UpdateIOUViewFactory) NewView(in []byte) (view.View, error)

Jump to

Keyboard shortcuts

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