Documentation
¶
Index ¶
- Constants
- func CreatedWithData(data interface{}, c echo.Context) error
- func Fail(c echo.Context) error
- func FailDetailedwithCode(code int, data interface{}, message string, c echo.Context) error
- func FailWithDataMessage(data interface{}, message string, c echo.Context) error
- func FailWithDetailed(status string, data interface{}, message string, c echo.Context) error
- func FailWithMessage(message string, c echo.Context) error
- func FailWithMessageWithCode(code int, message string, c echo.Context) error
- func OKWithMesssage(msg string, c echo.Context) error
- func Ok(c echo.Context) error
- func OkDetailed(data interface{}, message string, c echo.Context) error
- func OkWithData(data interface{}, c echo.Context) error
- func Result(httpStatus int, status string, data interface{}, msg string, c echo.Context) error
- type Response
- type RootResponse
- type ServerInfo
Constants ¶
View Source
const ( ERROR = "ERROR" SUCCESS = "OK" )
Variables ¶
This section is empty.
Functions ¶
func CreatedWithData ¶
func CreatedWithData(data interface{}, c echo.Context) error
CreatedWithData response
func FailDetailedwithCode ¶
FailDetailedwithCode response
func FailWithDataMessage ¶
FailWithDataMessage response
func FailWithDetailed ¶
FailWithDetailed response
func FailWithMessage ¶
FailWithMessage response
func FailWithMessageWithCode ¶
FailWithMessageWithCode response
func OkDetailed ¶
OkDetailed response
Types ¶
type Response ¶
type Response struct { Message string `json:"message"` Result interface{} `json:"result"` }
Response type
type RootResponse ¶
type RootResponse struct { Status string `json:"status"` Response Response `json:"response"` ServerInfo ServerInfo `json:"serverInfo"` }
RootResponse type