Versions in this module Expand all Collapse all v0 v0.1.1 Mar 1, 2022 Changes in this version + func BuildAddress(ip, port string) (string, error) v0.1.0 Mar 8, 2019 Changes in this version + func BuildHostname(ip, port string) (string, error) + func CloneRequest(r *http.Request, body []byte) *http.Request + func DoRequest(method, host, body string, timeout time.Duration) (string, error) + func ExternalIP() (string, error) + func GetHostPort(addr string) (host string, port string, err error) + func Min(a, b int) int + func NewTemplate(outputTmpl string) *template.Template + func Now() time.Duration + func ParseHTTPHeader(in string) ([]string, error) + func ReadBody(r *http.Request, obj interface{}) (string, error) + func RespondWithError(w http.ResponseWriter, code int, message string) + func RespondWithJSON(w http.ResponseWriter, code int, payload interface{}) + func RespondWithJSONIndent(w http.ResponseWriter, code int, payload interface{}) + func WaitSignal(stopChan chan struct{})