Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorEmailAlreadyExists = errors.New("email already exists")
View Source
var ErrorInvalidLogin = errors.New("invalid email or password")
View Source
var ErrorUsernameAlreadyExists = errors.New("username already exists")
View Source
var TimeNowMillis = time.Now().UnixNano() / int64(time.Millisecond)
View Source
var UUID = uuid.New().String()
Functions ¶
func GetErrorStatusCode ¶
Types ¶
type ExampleErrorResponse ¶
type ExampleErrorResponse struct { Message string `json:"message" example:"user bad request"` Email string `json:"email" example:"cannot be empty"` Password string `json:"password" example:"cannot be empty"` }
this is for swagger needs
Click to show internal directories.
Click to hide internal directories.