Versions in this module Expand all Collapse all v0 v0.3.0 Feb 11, 2019 v0.2.0 Sep 12, 2018 v0.1.0 Apr 5, 2018 v0.0.2 May 24, 2017 Changes in this version type CcaError + ErrorCode string v0.0.1 Feb 20, 2017 Changes in this version + const API_KEY_HEADER + const BAD_REQUEST + const DELETE + const GET + const MUTIPLE_CHOICES + const NOT_FOUND + const OK + const POST + const PUT + type ApiClient interface + Do func(request CcaRequest) (*CcaResponse, error) + GetApiKey func() string + GetApiURL func() string + func NewApiClient(apiURL, apiKey string) ApiClient + func NewInsecureApiClient(apiURL, apiKey string) ApiClient + type CcaApiClient struct + func (ccaClient CcaApiClient) Do(request CcaRequest) (*CcaResponse, error) + func (ccaClient CcaApiClient) GetApiKey() string + func (ccaClient CcaApiClient) GetApiURL() string + type CcaError struct + Code int + Context map[string]interface{} + Message string + type CcaErrorResponse CcaResponse + func (errorResponse CcaErrorResponse) Error() string + type CcaRequest struct + Body []byte + Endpoint string + Method string + Options map[string]string + type CcaResponse struct + Data []byte + Errors []CcaError + MetaData map[string]interface{} + StatusCode int + TaskId string + TaskStatus string + func NewCcaResponse(response *http.Response) (*CcaResponse, error) + func (ccaResponse CcaResponse) IsError() bool