Versions in this module Expand all Collapse all v1 v1.0.1 Oct 14, 2022 v1.0.0 Jun 2, 2022 Changes in this version + func FailureResp(w http.ResponseWriter, errObj model.ErrorModel) + func GetRequest(url string) model.Result + func PostRequest(url string, header map[string]string, body string) model.Result + func RegistHandle(name string, handler HttpHandler) + func Request(method, url string, header map[string]string, body string) model.Result + func RespResult(w http.ResponseWriter, r model.Result) + func SetHtmlRep(w http.ResponseWriter) + func SetJsonRep(w http.ResponseWriter) + func SetTextRep(w http.ResponseWriter) + func StartServer(addr string, c chan struct{}) + func StartTLSServer(addr, crt, key string) + func SuccessRespJson(w http.ResponseWriter, r interface{}) + func TimestampHandler(w http.ResponseWriter, _ *http.Request) + func TokenHandler(w http.ResponseWriter, _ *http.Request) + type HttpHandler func(w http.ResponseWriter, r *http.Request)