Documentation ¶
Index ¶
- func GetInsecureHTTPSClient() *http.Client
- func HealthCheck(url string, headerMap map[string]string, timeout time.Duration) (returnedResult bool, returnedError error)
- func Request(method string, url string, body interface{}, headerMap map[string]string, ...) (returnedStatusCode int, returnedJsonMapOrJsonSlice interface{}, ...)
- func RequestByteSliceResult(method string, url string, body map[string]interface{}, ...) (returnedStatusCode int, returnedByteSlice []byte, returnedError error)
- func RequestDelete(url string, body interface{}, headerMap map[string]string, ...) (interface{}, error)
- func RequestDeleteByteSliceResult(url string, body map[string]interface{}, headerMap map[string]string) ([]byte, error)
- func RequestDeleteWithStructure(url string, body interface{}, returnedStrucutre interface{}, ...) (interface{}, error)
- func RequestGet(url string, headerMap map[string]string, ...) (interface{}, error)
- func RequestGetByteSliceResult(url string, headerMap map[string]string) ([]byte, error)
- func RequestGetWithStructure(url string, returnedStrucutre interface{}, headerMap map[string]string) (interface{}, error)
- func RequestPost(url string, body interface{}, headerMap map[string]string, ...) (interface{}, error)
- func RequestPostByteSliceResult(url string, body map[string]interface{}, headerMap map[string]string) ([]byte, error)
- func RequestPostWithStructure(url string, body interface{}, returnedStrucutre interface{}, ...) (interface{}, error)
- func RequestPut(url string, body interface{}, headerMap map[string]string, ...) (interface{}, error)
- func RequestPutByteSliceResult(url string, body map[string]interface{}, headerMap map[string]string) ([]byte, error)
- func RequestPutWithStructure(url string, body interface{}, returnedStrucutre interface{}, ...) (interface{}, error)
- func RequestWithStructure(method string, url string, body interface{}, returnedStructure interface{}, ...) (returnedStatusCode int, returnedJsonMapOrJsonSlice interface{}, ...)
- type RequestError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInsecureHTTPSClient ¶
func HealthCheck ¶
func RequestByteSliceResult ¶
func RequestDelete ¶
func RequestGet ¶
func RequestGetWithStructure ¶
func RequestPost ¶
func RequestPut ¶
func RequestPutWithStructure ¶
Types ¶
type RequestError ¶
type RequestError struct { Url string StatusCode int ResponseData interface{} ResponseBody *string ReturnedError error }
func (RequestError) AllData ¶
func (requestError RequestError) AllData() string
func (RequestError) Error ¶
func (requestError RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.