Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProxyController ¶
type ProxyController struct {
web.Controller
RequestInfo *RequestInfo
}
func (*ProxyController) Process ¶
func (c *ProxyController) Process(w http.ResponseWriter, r *http.Request)
type RequestInfo ¶
type RequestInfo struct {
Path string
Method string
// Timeout how max millisecond to invoke the Path
Timeout int
ResponseFunc ResponseFunc
ErrorResponseFunc ResponseFunc
}
type ResponseFunc ¶
type ResponseFunc func(w http.ResponseWriter, requestBody, responseBody []byte) bool
Click to show internal directories.
Click to hide internal directories.