Documentation ¶
Index ¶
- func Delete(url string, token string, insecureTLS bool) (map[string]interface{}, error)
- func Get(url string, token string, insecureTLS bool) (map[string]interface{}, error)
- 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 Post ¶
func Post(url string, token string, body interface{}, insecureTLS bool) (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) (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.