Documentation
¶
Index ¶
- func DoGet(url string) bool
- func PortScan(host, port string) bool
- func RequestBody(r *http.Request) string
- func RequestBodyStruct(r *http.Request, v interface{})
- func ResponseJson(r http.ResponseWriter, code int, msg string, data interface{}, err error)
- func ResponseJsonError(r http.ResponseWriter, code int, err error)
- func ResponseJsonSuccess(r http.ResponseWriter, code int, msg string, data interface{})
- func RunServer(listenport int, apis []Api)
- type Api
- type JsonBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestBody ¶ added in v0.0.3
func RequestBodyStruct ¶ added in v0.0.3
func ResponseJson ¶ added in v0.0.3
func ResponseJson(r http.ResponseWriter, code int, msg string, data interface{}, err error)
func ResponseJsonError ¶ added in v0.0.4
func ResponseJsonError(r http.ResponseWriter, code int, err error)
func ResponseJsonSuccess ¶ added in v0.0.4
func ResponseJsonSuccess(r http.ResponseWriter, code int, msg string, data interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.