package
Version:
v0.0.0-...-21df774
Opens a new window with list of versions in this module.
Published: Aug 21, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateAccountRequest struct {
Currency string `json:"currency" binding:"required,currency"`
}
type CreateTransferRequest struct {
FromAccountID int64 `json:"from_account_id" binding:"required,min=1"`
ToAccountID int64 `json:"to_account_id" binding:"required,min=1"`
Amount int64 `json:"amount" binding:"required,gt=0"`
Currency string `json:"currency" binding:"required,currency"`
}
type CreateUserRequest struct {
Username string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=6"`
FullName string `json:"full_name" binding:"required"`
Email string `json:"email" binding:"required,email"`
}
Start runs the HTTP server on a specific address
Source Files
¶
Click to show internal directories.
Click to hide internal directories.