Documentation
¶
Index ¶
- func GetEnv(key, fallback string) string
- func GetMD5(input string) string
- func NewError(msg string) error
- type RestErr
- func NewBadRequestError(message string) *RestErr
- func NewForbiddenError(message string) *RestErr
- func NewInternalServerError(message string) *RestErr
- func NewNotFoundError(message string) *RestErr
- func NewUnauthorizedError(message string) *RestErr
- func SendSms(message string, mobile string) *RestErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RestErr ¶
type RestErr struct { Message string `json:"message"` Status int `json:"status"` Error string `json:"error"` }
func NewBadRequestError ¶
func NewForbiddenError ¶
func NewInternalServerError ¶
func NewNotFoundError ¶
func NewUnauthorizedError ¶
Click to show internal directories.
Click to hide internal directories.