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") )
View Source
var (
ErrRecipeNotFound = errors.New("recipe not found")
)
View Source
var (
ErrUserNotFound = errors.New("user not found")
)
Functions ¶
func IsValidUUID ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccountBalance ¶
type AccountRepository ¶
type Recipe ¶
type RecipeRepository ¶
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
type TransferRepository ¶
type User ¶
type UserRepository ¶
type UserRepository interface { Create(context.Context, User) (User, error) Update(context.Context, UserID, User) (User, error) FindAll(context.Context) ([]User, error) FindByEmail(context.Context, Email) (User, error) FindByEmailAndPass(context context.Context, email string, password string) (User, error) FindByID(context.Context, UserID) (User, error) Delete(context.Context, UserID) error }
Click to show internal directories.
Click to hide internal directories.