Versions in this module Expand all Collapse all v1 v1.0.1 Jun 23, 2022 Changes in this version + func BuildAuthTokenFromEnv() (map[string]string, error) + func DispatchAndWait(method, host string, url string, token map[string]string, data interface{}) ([]byte, error) + func DispatchSocket(method, host string, url string, headers map[string]string, data interface{}) ([]byte, error) + func JSONResponse(response interface{}, w http.ResponseWriter) error + func JSONResponseError(err error, w http.ResponseWriter) error + func JSONUnmarshal(msg []byte) (map[string]interface{}, error) + type JSONResponseMessage struct + Errors string + Message interface{} + Success bool + type Response struct + Body []byte + Header http.Header + Status string + StatusCode int + func DispatchSocketWithStatus(method, host string, url string, headers map[string]string, data interface{}) (*Response, error) + type StatusDesc struct + Errors string + Message StatusResponse + Success bool + type StatusResponse struct + Link string + Status string