Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupGracefulStop ¶
Types ¶
type JSONResponse ¶
type JSONResponse struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data,omitempty"` }
JSONResponse
func BindJSONResponse ¶
func BindJSONResponse(data []byte) *JSONResponse
func (*JSONResponse) Error ¶
func (e *JSONResponse) Error() error
type ReverseProxy ¶
type ReverseProxy struct {
httputil.ReverseProxy
}
func NewReverseProxy ¶
func NewReverseProxy(target *url.URL, header http.Header) *ReverseProxy
Click to show internal directories.
Click to hide internal directories.