views

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 10 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 ApproverView

type ApproverView struct{}

func (*ApproverView) Call

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

type Create

type Create struct {
	// 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 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