Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = errors.New("forbidden")
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
URL() string
HTTPClient() *http.Client
Send(request Request, response *Response) error
SendHTTPRequest(request *http.Request, returnResponseBody bool, response *Response) error
ConnectToEventStream(request Request) (*sse.EventSource, error)
}
Deprecated. Use HTTPAgent instead
func NewConnection ¶
func NewConnection(apiURL string, httpClient *http.Client, tracing bool) Connection
Deprecated
type ResourceNotFoundError ¶
type ResourceNotFoundError jsonapi.ErrorsPayload
func (ResourceNotFoundError) Error ¶
func (e ResourceNotFoundError) Error() string
type UnexpectedResponseError ¶
type UnexpectedResponseError struct {
StatusCode int
Status string
Body string
// contains filtered or unexported fields
}
func (UnexpectedResponseError) Error ¶
func (e UnexpectedResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.