Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteJSON[T any](ctx context.Context, path string) (*types.ApiResponse[T], error)
- func (c *Client) DoEnvelope[T any](ctx context.Context, method, path string, body any) (*types.ApiResponse[T], error)
- func (c *Client) DoJSON[T any](ctx context.Context, method, path string, body any, headers ...http.Header) (T, error)
- func (c *Client) DoRaw(ctx context.Context, method, path string, body any) ([]byte, error)
- func (c *Client) EnvID() string
- func (c *Client) GetJSON[T any](ctx context.Context, path string) (*types.ApiResponse[T], error)
- func (c *Client) PostJSON[T any](ctx context.Context, path string, body any) (*types.ApiResponse[T], error)
- func (c *Client) PutJSON[T any](ctx context.Context, path string, body any) (*types.ApiResponse[T], error)
- func (c *Client) Request(ctx context.Context, method, path string, body any, headers ...http.Header) (*http.Response, error)
- func (c *Client) RequestRaw(ctx context.Context, method, path string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetEnvironment(envID string)
- func (c *Client) SetRetryPolicy(maxAttempts int, baseBackoff, maxBackoff time.Duration)
- func (c *Client) SetTimeout(timeout time.Duration)
- func (c *Client) TestConnection(ctx context.Context) error
- type StatusError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteJSON ¶
func (*Client) DoEnvelope ¶
func (*Client) RequestRaw ¶
func (*Client) SetEnvironment ¶
func (*Client) SetRetryPolicy ¶
func (*Client) SetTimeout ¶
type StatusError ¶
func (*StatusError) Error ¶
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.