Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInsufficientFunds ¶
type ErrInsufficientFunds float64 // rises when a user has insufficient funds. The value is the amount of funds required.
Domain errors. These types are used to identify the error cause.
func (ErrInsufficientFunds) Error ¶
func (e ErrInsufficientFunds) Error() string
type ErrNegativeCurrency ¶
type ErrNegativeCurrency float64 // rises when a user tries to pass a negative amount.
Domain errors. These types are used to identify the error cause.
func (ErrNegativeCurrency) Error ¶
func (e ErrNegativeCurrency) Error() string
type ErrUserAlreadyExists ¶
type ErrUserAlreadyExists uint64 // rises when a user with the given ID is already exists
Repository errors. These types are used to identify the error cause in service layer when a repository fails.
func (ErrUserAlreadyExists) Error ¶
func (e ErrUserAlreadyExists) Error() string
type ErrUserNotFound ¶
type ErrUserNotFound uint64 // rises when a user with the given ID was not found
Repository errors. These types are used to identify the error cause in service layer when a repository fails.
func (ErrUserNotFound) Error ¶
func (e ErrUserNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.