Documentation ¶
Index ¶
- Constants
- func AddAmount(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func GetBalance(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func TransferAmount(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func WithdrawAmount(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- type BalanceResponse
- type InputRequest
- type UserBalanceController
Constants ¶
View Source
const BAD_REQUEST_CUSTOM = 422
Variables ¶
This section is empty.
Functions ¶
func AddAmount ¶
func AddAmount(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
http handler AddAmount
func GetBalance ¶
func GetBalance(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
http handler GetBalance
func TransferAmount ¶
func TransferAmount(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
http handler TransferAmount
func WithdrawAmount ¶
func WithdrawAmount(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
http handler WithdrawAmount
Types ¶
type BalanceResponse ¶
type BalanceResponse struct {
Balance int `json:"balance"`
}
type InputRequest ¶
type UserBalanceController ¶
type UserBalanceController struct { Request *http.Request Response http.ResponseWriter HttpLib }
Click to show internal directories.
Click to hide internal directories.