Documentation
¶
Index ¶
- Constants
- func DoSignedRequest(client *http.Client, method, url string, body []byte) (int, []byte, error)
- func DoUnsignedRequest(client *http.Client, method, url string, body []byte) (int, []byte, error)
- func HandleDeleteResponse(statusCode int, body []byte) error
- func HandleGetResponse(statusCode int, body []byte, target interface{}) error
- func HandleStandardResponse(statusCode int, body []byte, target interface{}) error
- func ParseAPIResponse(body []byte, target interface{}) error
- func ParseValidationErrorResponse(body []byte) error
- func SetCommonHeaders(req *http.Request, contentType string)
- func SignRequest(req *http.Request, _ []byte) error
Constants ¶
View Source
const (
UserAgent = "initiat-cli/1.0"
)
Variables ¶
This section is empty.
Functions ¶
func DoSignedRequest ¶
func DoUnsignedRequest ¶
func HandleDeleteResponse ¶
func HandleGetResponse ¶
func HandleStandardResponse ¶
func ParseAPIResponse ¶
func SetCommonHeaders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.