Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomError ¶
type CustomError struct { Code int `json:"code"` HTTPStatus int `json:"http_status"` Message string `json:"message"` }
func (*CustomError) Error ¶
func (ce *CustomError) Error() string
type GeneralResponse ¶
type Register ¶
type Register struct { Username string `json:"username" binding:"required"` Email string `json:"email" binding:"required,email"` Password string `json:"password" binding:"required"` }
TODO: validate string length TODO: validate must not have whitespace TODO: validate username cannot use special characters except -_.
Click to show internal directories.
Click to hide internal directories.