Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WhiteList = []string{
"/api.json",
"/health",
}
Functions ¶
func HttpResponseMiddleware ¶
Types ¶
type DefaultHandlerResponse ¶
type DefaultHandlerResponse struct { Code int `json:"code" dc:"Error code"` Message string `json:"message" dc:"Error message"` Data interface{} `json:"data" dc:"Result data for certain request according API definition"` }
DefaultHandlerResponse is the default implementation of HandlerResponse.
Click to show internal directories.
Click to hide internal directories.