package
Version:
v0.0.0-...-c8b5416
Opens a new window with list of versions in this module.
Published: Jan 23, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateUserRequest struct {
FullName string `json:"full_name" binding:"required"`
Username string `json:"username" binding:"required,alphanum"`
Password string `json:"password" binding:"required,min=8"`
Email string `json:"email" binding:"required,email"`
}
NewServer creates a new HTTP server and setup routing.
Start runs the HTTP server on a specific address
type TransRequest 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.