package
Version:
v0.0.0-...-d881adf
Opens a new window with list of versions in this module.
Published: Nov 8, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Server server HTTP requests for our banking service
NewServer create a new HTTP server and setup routing
Start runs the HTTP server on a specific address
type TransferRequest 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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.