Documentation ¶
Index ¶
- func Delete(url string, token string, insecureTLS bool, logger logger.Logger) (map[string]interface{}, error)
- func Get(url string, token string, insecureTLS bool, logger logger.Logger) (map[string]interface{}, error)
- func GetURLQuery(queryParams interface{}) string
- func Post(url string, token string, body interface{}, insecureTLS bool, ...) (map[string]interface{}, error)
- func Put(url string, token string, body interface{}, insecureTLS bool, ...) (map[string]interface{}, error)
- func SendRequest(url string, method string, token string, body interface{}, insecureTLS bool, ...) (map[string]interface{}, error)
- func SendRequestRaw(url string, method string, token string, body interface{}, insecureTLS bool, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(url string, token string, insecureTLS bool, logger logger.Logger) (map[string]interface{}, error)
Delete a delete request and get response as serialized json map[string]interface{}
func Get ¶
func Get(url string, token string, insecureTLS bool, logger logger.Logger) (map[string]interface{}, error)
Get a get request and get response as serialized json map[string]interface{}
func GetURLQuery ¶
func GetURLQuery(queryParams interface{}) string
GetURLQuery converts a struct into a url query. The struct must have a tagname of 'query_key'
func Post ¶
func Post(url string, token string, body interface{}, insecureTLS bool, logger logger.Logger) (map[string]interface{}, error)
Post a post request and get response as serialized json map[string]interface{}
func Put ¶
func Put(url string, token string, body interface{}, insecureTLS bool, logger logger.Logger) (map[string]interface{}, error)
Put a put request and get response as serialized json map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.