house

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptHouseView

type AcceptHouseView struct{}

func (*AcceptHouseView) Call

func (a *AcceptHouseView) 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)

Jump to

Keyboard shortcuts

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