Documentation
¶
Index ¶
- Constants
- func ClientAuthApiKeyGET(r *config.Red_t, path, server, apikey string) ([]byte, int, error)
- func ClientAuthBasicGET(r *config.Red_t, path, server, username, password string) ([]byte, int, error)
- func ClientGET(r *config.Red_t, path string) ([]byte, int, error)
- func ClientPOST(r *config.Red_t, path string, body []byte) ([]byte, int, error)
- func ClientPUT(r *config.Red_t, path string, body []byte) ([]byte, int, error)
- func StatusCode(status int) error
- type ResponseError
Constants ¶
View Source
const ( ERR_CONN_CREATE = "Could not create connection with server, correct server details?" ERR_CONN_SILENCE = "No response from server, correct server details?" ERR_CONN_RES = "Could not read response from server.." ERR_CONN_AUTH = "Request is not authorized, do you have access or have authenticated?" )
Variables ¶
This section is empty.
Functions ¶
func ClientAuthApiKeyGET ¶
func ClientAuthBasicGET ¶
func StatusCode ¶
Types ¶
type ResponseError ¶
type ResponseError struct {
Errors []string `json:"errors"`
}
func ParseResponseError ¶
func ParseResponseError(body []byte) ResponseError
Click to show internal directories.
Click to hide internal directories.