entity

package
v0.0.0-...-540f87c Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID       uint32
	ClientID uint32
	Currency string
	Amount   decimal.Decimal
}

func (*Account) CanPerformAction

func (data *Account) CanPerformAction() error

func (*Account) CanPerformWithdraw

func (data *Account) CanPerformWithdraw(amount float32) error

func (*Account) CanRecieveTransfer

func (data *Account) CanRecieveTransfer(sender *Account) error

type Client

type Client struct {
	ID       uint32
	Name     string
	Accounts []*Account
}

func (*Client) CanPerformAction

func (data *Client) CanPerformAction() error

Jump to

Keyboard shortcuts

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