Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPayload = "invalid request payload" ErrRequiredFields = "invalid fields" )
Functions ¶
This section is empty.
Types ¶
type CreateAccountRequest ¶
type CreateAccountResponse ¶
type GetAccountResponse ¶
type GetBalanceResponse ¶
type GetBalanceResponse struct {
Balance int `json:"balance"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) GetBalance ¶
func (h Handler) GetBalance(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.