Versions in this module Expand all Collapse all v6 v6.4.2 Aug 17, 2020 Changes in this version + var ErrForbidden = errors.New("forbidden") + var ErrUnauthorized = errors.New("not authorized") + type Connection interface + ConnectToEventStream func(request Request) (*sse.EventSource, error) + HTTPClient func() *http.Client + Send func(request Request, response *Response) error + SendHTTPRequest func(request *http.Request, returnResponseBody bool, response *Response) error + URL func() string + func NewConnection(apiURL string, httpClient *http.Client, tracing bool) Connection + type HTTPAgent interface + Send func(request Request) (http.Response, error) + func NewHTTPAgent(apiURL string, httpClient *http.Client, tracing bool) HTTPAgent + type Request struct + Body io.Reader + Header http.Header + Params rata.Params + Query url.Values + RequestName string + ReturnResponseBody bool + type ResourceNotFoundError jsonapi.ErrorsPayload + func (e ResourceNotFoundError) Error() string + type Response struct + Created bool + Headers *http.Header + Result interface{} + type UnexpectedResponseError struct + Body string + Status string + StatusCode int + func (e UnexpectedResponseError) Error() string