Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Configuration ¶
type Configuration struct { Database DatabaseSetting Server ServerSettings App Application }
type DatabaseSetting ¶
type ResponseError ¶
type ResponseError struct { Message string `json:"message"` Status int `json:"status"` Error string `json:"error"` Data map[string]interface{} `json:"data"` }
func BadRequestError ¶
func BadRequestError(message string, err error, data map[string]interface{}) *ResponseError
BadRequestError return ResponseError with bad_request status and messages
func InternalServerError ¶
func InternalServerError(message string, err error, data map[string]interface{}) *ResponseError
mcustom error return ResponseError with internal_server status and messages
func NotFoundRequestError ¶
func NotFoundRequestError(message string, err error, data map[string]interface{}) *ResponseError
NotFoundRequestError return ResponseError with not_found status and messages
type ResponseResult ¶
type ResponseResult struct { Message string `json:"message"` Data map[string]interface{} `json:"data"` }
func Response ¶
func Response(message string, data map[string]interface{}) *ResponseResult
BadRequestError return ResponseError with bad_request status and messages
type ServerSettings ¶
type ServerSettings struct {
Port string
}
Click to show internal directories.
Click to hide internal directories.