views

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptIssuedHouseView

type AcceptIssuedHouseView struct{}

func (*AcceptIssuedHouseView) Call

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

type AcceptTransferHouseView

type AcceptTransferHouseView struct{}

func (AcceptTransferHouseView) Call

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

type AuditView

type AuditView struct{}

func (*AuditView) Call

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

type GetHouse

type GetHouse struct {
	HouseID string
}

GetHouse contains the input to query a house by id

type GetHouseView

type GetHouseView struct {
	*GetHouse
}

func (*GetHouseView) Call

func (p *GetHouseView) Call(context view.Context) (interface{}, error)

type GetHouseViewFactory

type GetHouseViewFactory struct{}

func (*GetHouseViewFactory) NewView

func (i *GetHouseViewFactory) NewView(in []byte) (view.View, error)

type House

type House struct {
	LinearID  string
	Address   string
	Valuation uint64
}

House is a struct that contains a house

func (*House) SetLinearID

func (h *House) SetLinearID(id string) string

SetLinearID sets the linear id of the house

type IssueHouse

type IssueHouse struct {
	// IssuerWallet is the issuer's wallet to use
	IssuerWallet string
	// Recipient is an identifier of the recipient identity
	Recipient string
	// Address is the address of the house to issue
	Address string
	// Valuation is the valuation of the house to issue
	Valuation uint64
}

IssueHouse contains the input information to issue a token

type IssueHouseView

type IssueHouseView struct {
	*IssueHouse
}

func (*IssueHouseView) Call

func (p *IssueHouseView) Call(context view.Context) (interface{}, error)

type IssueHouseViewFactory

type IssueHouseViewFactory struct{}

func (*IssueHouseViewFactory) NewView

func (p *IssueHouseViewFactory) NewView(in []byte) (view.View, error)

type RegisterAuditorView

type RegisterAuditorView struct{}

func (*RegisterAuditorView) Call

func (r *RegisterAuditorView) Call(context view.Context) (interface{}, error)

type RegisterAuditorViewFactory

type RegisterAuditorViewFactory struct{}

func (*RegisterAuditorViewFactory) NewView

func (p *RegisterAuditorViewFactory) NewView(in []byte) (view.View, error)

type Transfer

type Transfer struct {
	// Wallet is the wallet from which recipient identities must be derived
	Wallet string
	// HouseID is the house ID of the house to sell
	HouseID string
	// Recipient is the identity of the buyer (it is identifier as defined in the topology)
	Recipient string
}

Transfer contains the transfer instructions

type TransferHouseView

type TransferHouseView struct {
	*Transfer
}

func (*TransferHouseView) Call

func (d *TransferHouseView) Call(context view.Context) (interface{}, error)

type TransferHouseViewFactory

type TransferHouseViewFactory struct{}

func (TransferHouseViewFactory) NewView

func (s TransferHouseViewFactory) NewView(in []byte) (view.View, error)

Jump to

Keyboard shortcuts

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