Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID uuid.UUID Customer *Customer Balance decimal.Decimal CreatedAt time.Time UpdatedAt time.Time }
func NewAccount ¶
type Customer ¶
type Transaction ¶
type Transaction struct { ID uuid.UUID FromAccount *Account ToAccount *Account Status Status Amount decimal.Decimal CreatedAt time.Time }
func NewTransaction ¶
func (*Transaction) Commit ¶
func (t *Transaction) Commit() error
func (*Transaction) Validate ¶
func (t *Transaction) Validate() error
Click to show internal directories.
Click to hide internal directories.