Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrBadRequest = "Bad request" ErrEmailAlreadyExists = "User with given email already exists" ErrNoSuchUser = "User not found" ErrWrongCredentials = "Wrong Credentials" ErrNotFound = "Not Found" ErrForbidden = "Forbidden" ErrBadQueryParams = "Invalid query params" )
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func SuccessResponse ¶
func SuccessResponse(data interface{}) interface{}
Types ¶
type Response ¶
type Response struct {
Status string `json:"status"`
Data interface{} `json:"data,omitempty"`
Error httpErrors.RestErr `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.