Documentation
¶
Index ¶
- Constants
- func CreatedWithData(data interface{}, c echo.Context) error
- func Fail(c echo.Context) error
- func FailDetailedwithCode(code int, data interface{}, msg string, c echo.Context) error
- func FailWithDataMessage(data interface{}, msg string, c echo.Context) error
- func FailWithDetailed(status string, data interface{}, msg string, c echo.Context) error
- func FailWithMessage(msg string, c echo.Context) error
- func FailWithMessageWithCode(code int, msg string, c echo.Context) error
- func OK(c echo.Context) error
- func OKDetailed(data interface{}, msg string, c echo.Context) error
- func OKWithData(data interface{}, c echo.Context) error
- func OKWithMesssage(msg string, 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 represent ERROR status ERROR = "ERROR" // SUCCESS represent OK status SUCCESS = "OK" )
Variables ¶
This section is empty.
Functions ¶
func CreatedWithData ¶
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
Click to show internal directories.
Click to hide internal directories.