Documentation
¶
Index ¶
- 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
- type Response
- type StatusDesc
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthTokenFromEnv ¶
func DispatchAndWait ¶
func DispatchSocket ¶
func JSONResponse ¶
func JSONResponse(response interface{}, w http.ResponseWriter) error
func JSONResponseError ¶
func JSONResponseError(err error, w http.ResponseWriter) error
func JSONUnmarshal ¶
Types ¶
type JSONResponseMessage ¶
type StatusDesc ¶
type StatusDesc struct { Success bool `json:"success"` Message StatusResponse `json:"message"` Errors string `json:"errors"` }
type StatusResponse ¶
Click to show internal directories.
Click to hide internal directories.