Documentation ¶
Index ¶
Constants ¶
View Source
const ( DataField = "data" TraceIDField = "trace_id" SuccessField = "success" // CodeField = "code" MessageField = "message" TotalField = "total" MetadataField = "metadata" )
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
func Wrap(fn EchoHandlerFunc) echo.HandlerFunc
Types ¶
type EchoHandlerFunc ¶
type EchoHandlerFunc func(c echo.Context) Response
type FailResponse ¶
type FailResponse struct { Success bool `json:"success" example:"false"` Message string `json:"message" example:"Example message"` }
For API docs
type SuccessResponse ¶
type SuccessResponse struct { Success bool `json:"success" example:"true"` Data interface{} `json:"data"` Metadata interface{} `json:"metadata"` }
For API docs
Click to show internal directories.
Click to hide internal directories.