package
Version:
v0.0.0-...-79a0da3
Opens a new window with list of versions in this module.
Published: Mar 22, 2025
License: MIT
Opens a new window with license information.
Imports: 14
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 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"`
}
type GetAccountRequest struct {
ID int64 `uri:"id" binding:"required,min=1"`
}
type ListAccountRequest struct {
PageID int32 `form:"page_id" binding:"required,min=1"`
PageSize int32 `form:"page_size" binding:"required,min=5,max=10"`
}
Server serves HTTP requests for out banking service
NewServer creates a new HTTP server and set up routing
Start runs the HTTP server on a specific address
Source Files
¶
Click to show internal directories.
Click to hide internal directories.