Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware(clientAddress string) gin.HandlerFunc
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves HTTP requests for our banking services
type TransferTxResult ¶
type TransferTxResult struct { FromAccountID int64 `json:"from_account_id" binding:"required,min=1"` FromAccountOwner string `json:"from_account_owner" binding:"required"` ToAccountID int64 `json:"to_account_id" binding:"required,min=1"` ToAccountOwner string `json:"to_account_owner" binding:"required"` Amount int64 `json:"amount" binding:"required,gt=0"` Currency string `json:"currency" binding:"required,currency"` }
Click to show internal directories.
Click to hide internal directories.