Documentation
¶
Overview ¶
Code generated by the Vectali tooling. DO NOT EDIT.
Index ¶
- type BillingSummary
- type Client
- func (c *Client) Convert(ctx context.Context, image any, options ...ConvertOptions) (*Conversion, error)
- func (c *Client) ConvertImage(ctx context.Context, image any, options ...ConvertOptions) (*Conversion, error)
- func (c *Client) Download(ctx context.Context, id, format string) ([]byte, error)
- func (c *Client) GetAllowance(ctx context.Context) (*BillingSummary, error)
- func (c *Client) GetVector(ctx context.Context, id, format string) ([]byte, error)
- func (c *Client) Health(ctx context.Context) (*Health, error)
- type ClientOption
- type Conversion
- type ConvertOptions
- type Health
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingSummary ¶
type BillingSummary = forge.BillingSummary
type Client ¶ added in v0.3.0
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶ added in v0.3.0
func NewClient(apiKey string, options ...ClientOption) *Client
func (*Client) Convert ¶ added in v0.3.0
func (c *Client) Convert(ctx context.Context, image any, options ...ConvertOptions) (*Conversion, error)
Convert accepts []byte, an io.Reader, or a filesystem path string.
func (*Client) ConvertImage ¶ added in v0.3.0
func (c *Client) ConvertImage(ctx context.Context, image any, options ...ConvertOptions) (*Conversion, error)
func (*Client) GetAllowance ¶ added in v0.3.0
func (c *Client) GetAllowance(ctx context.Context) (*BillingSummary, error)
type ClientOption ¶ added in v0.3.0
func WithBaseURL ¶ added in v0.3.0
func WithBaseURL(origin string) ClientOption
func WithTimeout ¶ added in v0.3.0
func WithTimeout(timeout time.Duration) ClientOption
type Conversion ¶
type Conversion = forge.Conversion
type ConvertOptions ¶ added in v0.3.0
type Health ¶ added in v0.4.0
type Health = forge.HealthStatus200
type ResponseError ¶ added in v0.3.0
ResponseError retains the HTTP diagnostics. Unwrap exposes the Forge error.
func (*ResponseError) Error ¶ added in v0.3.0
func (e *ResponseError) Error() string
func (*ResponseError) Unwrap ¶ added in v0.3.0
func (e *ResponseError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.