Documentation ¶
Index ¶
- func RunHttpServer(handlers ...*XhttpExecutor)
- func XhttpResponseDatas(writer http.ResponseWriter, code int, message string, datas []interface{}, ...)
- func XhttpResponseMaps(writer http.ResponseWriter, code int, message string, ...)
- func XhttpResponseMessages(writer http.ResponseWriter, code int, message string)
- type XhttpExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunHttpServer ¶
func RunHttpServer(handlers ...*XhttpExecutor)
func XhttpResponseDatas ¶ added in v1.0.2
func XhttpResponseDatas(writer http.ResponseWriter, code int, message string, datas []interface{}, expands map[string]interface{})
func XhttpResponseMaps ¶ added in v1.0.2
func XhttpResponseMessages ¶ added in v1.0.2
func XhttpResponseMessages(writer http.ResponseWriter, code int, message string)
Types ¶
type XhttpExecutor ¶ added in v1.0.1
type XhttpExecutor struct {
// contains filtered or unexported fields
}
func XhttpFuncHandle ¶ added in v1.0.1
func XhttpFuncHandle(funcx func(http.ResponseWriter, *http.Request), path ...string) *XhttpExecutor
func XhttpHandle ¶ added in v1.0.1
func XhttpHandle(handler http.Handler, path ...string) *XhttpExecutor
Click to show internal directories.
Click to hide internal directories.