Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccountNotFound = errors.New("account not found") ErrAccountOriginNotFound = errors.New("account origin not found") ErrAccountDestinationNotFound = errors.New("account destination not found") ErrInsufficientBalance = errors.New("origin account does not have sufficient balance") )
Functions ¶
func IsValidUUID ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccountBalance ¶
type AccountRepository ¶
type Transfer ¶
type Transfer struct {
// contains filtered or unexported fields
}
func NewTransfer ¶
func (Transfer) AccountDestinationID ¶
func (Transfer) AccountOriginID ¶
func (Transfer) ID ¶
func (t Transfer) ID() TransferID
type TransferID ¶
type TransferID string
func (TransferID) String ¶
func (t TransferID) String() string
Click to show internal directories.
Click to hide internal directories.