Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2026 Changes in this version + const APIKeyEnvironmentVariable + const DefaultBaseURL + const DefaultConcurrency + const DefaultRetryDelay + const DefaultTimeout + const MaxRetries + const MaxRetryDelay + const RetryBackoffFactor + const Version + var JobTerminalStatuses = []string + func Bool(v bool) *bool + func Float(v float64) *float64 + func Int(v int64) *int64 + func String(v string) *string + type APIError struct + Message string + Response *Response + StatusCode int + func IsAPIError(err error) (*APIError, bool) + func (e *APIError) Error() string + type BarcodeParams struct + AriaLabel *string + Background *string + BarGap *float64 + BarWidth *float64 + BearerBars *bool + Color *string + Data string + Desc *string + Fields *string + FontFamily *string + FontSize *float64 + Format *string + Height *float64 + IsAsync *bool + Margin *float64 + MarginBottom *float64 + MarginLeft *float64 + MarginRight *float64 + MarginTop *float64 + Rotation *float64 + Share *bool + ShowText *bool + SoftFail *bool + TextAlign *string + TextPosition *string + Title *string + Type *string + Unit *string + type BatchResult struct + Err error + Index int + Value T + func Batch[I, T any](ctx context.Context, items []I, concurrency int, ...) []BatchResult[T] + type ChartAIParams struct + Background *string + DevicePixelRatio *float64 + Fields *string + Format *string + Height *float64 + IsAsync *bool + Legend *string + Prompt string + RawData *string + Share *bool + SoftFail *bool + Subtitle *string + Title *string + Width *float64 + type ChartParams struct + Fields *string + IsAsync *bool + Query string + Share *bool + SoftFail *bool + Version *string + type ChartRenderParams struct + Data1 *string + Fields *string + Format *string + Height *string + ID string + IsAsync *bool + Labels *string + SoftFail *bool + Title *string + Width *string + type ChartViewParams struct + Fields *string + ID string + IsAsync *bool + Share *bool + SoftFail *bool + type Client struct + func NewClient(apiKey string, options *ClientOptions) (*Client, error) + func (c *Client) Barcode(ctx context.Context, params *BarcodeParams, options ...RequestOption) (*Response, error) + func (c *Client) Chart(ctx context.Context, params *ChartParams, options ...RequestOption) (*Response, error) + func (c *Client) ChartAI(ctx context.Context, params *ChartAIParams, options ...RequestOption) (*Response, error) + func (c *Client) ChartRender(ctx context.Context, params *ChartRenderParams, options ...RequestOption) (*Response, error) + func (c *Client) ChartView(ctx context.Context, params *ChartViewParams, options ...RequestOption) (*Response, error) + func (c *Client) Diagram(ctx context.Context, params *DiagramParams, options ...RequestOption) (*Response, error) + func (c *Client) DiagramAI(ctx context.Context, params *DiagramAIParams, options ...RequestOption) (*Response, error) + func (c *Client) DiagramRender(ctx context.Context, params *DiagramRenderParams, options ...RequestOption) (*Response, error) + func (c *Client) DiagramView(ctx context.Context, params *DiagramViewParams, options ...RequestOption) (*Response, error) + func (c *Client) Jobs(ctx context.Context, params *JobsParams, options ...RequestOption) (*Response, error) + func (c *Client) Label(ctx context.Context, params *LabelParams, options ...RequestOption) (*Response, error) + func (c *Client) LabelCompile(ctx context.Context, params *LabelCompileParams, options ...RequestOption) (*Response, error) + func (c *Client) LabelConvert(ctx context.Context, params *LabelConvertParams, options ...RequestOption) (*Response, error) + func (c *Client) LabelParse(ctx context.Context, params *LabelParseParams, options ...RequestOption) (*Response, error) + func (c *Client) LabelRender(ctx context.Context, params *LabelRenderParams, options ...RequestOption) (*Response, error) + func (c *Client) LabelValidate(ctx context.Context, params *LabelValidateParams, options ...RequestOption) (*Response, error) + func (c *Client) LabelView(ctx context.Context, params *LabelViewParams, options ...RequestOption) (*Response, error) + func (c *Client) Qrcode(ctx context.Context, params *QrcodeParams, options ...RequestOption) (*Response, error) + func (c *Client) Request(ctx context.Context, method, path string, params map[string]any, ...) (*Response, error) + func (c *Client) Stats(ctx context.Context, params *StatsParams, options ...RequestOption) (*Response, error) + func (c *Client) Usage(ctx context.Context, options ...RequestOption) (*Response, error) + func (c *Client) WaitForJob(ctx context.Context, jobID string, options *WaitForJobOptions) (*Response, error) + type ClientOptions struct + BaseURL string + HTTPClient *http.Client + Headers map[string]string + MaxRetries int + RetryDelay time.Duration + Timeout time.Duration + type ConfigurationError struct + Err error + Message string + func (e *ConfigurationError) Error() string + func (e *ConfigurationError) Unwrap() error + type DiagramAIParams struct + DiagramType *string + Fields *string + IsAsync *bool + OutputFormat *string + Prompt string + Share *bool + SoftFail *bool + type DiagramParams struct + Fields *string + Format *string + IsAsync *bool + Query string + Share *bool + SoftFail *bool + Type string + type DiagramRenderParams struct + Fields *string + Format *string + ID string + IsAsync *bool + Query *string + Share *bool + SoftFail *bool + type DiagramViewParams struct + Fields *string + ID string + IsAsync *bool + Share *bool + SoftFail *bool + type JobTimeoutError struct + JobID string + LastResponse *Response + func (e *JobTimeoutError) Error() string + type JobsParams struct + ID string + type LabelCompileParams struct + Copies *float64 + DPI *float64 + Density *float64 + Direction *float64 + Elements []map[string]any + Fields *string + Gap *float64 + Height *float64 + IsAsync *bool + Language string + Printer *string + SoftFail *bool + Speed *float64 + Unit *string + Width float64 + type LabelConvertParams struct + Copies *float64 + DPI *float64 + Density *float64 + Fields *string + From string + IsAsync *bool + SoftFail *bool + Source string + Speed *float64 + To string + type LabelParams struct + Fields *string + Format *string + IsAsync *bool + Query string + Share *bool + SoftFail *bool + type LabelParseParams struct + Fields *string + IsAsync *bool + Language string + SoftFail *bool + Source string + type LabelRenderParams struct + Fields *string + Format *string + ID string + IsAsync *bool + SoftFail *bool + type LabelValidateParams struct + Fields *string + IsAsync *bool + Language string + SoftFail *bool + Source string + type LabelViewParams struct + Fields *string + ID string + IsAsync *bool + SoftFail *bool + type QrcodeParams struct + AriaLabel *string + Background *string + Color *string + Data string + Desc *string + DotSize *float64 + DotType *string + EcLevel *string + Fields *string + Format *string + IsAsync *bool + Margin *float64 + Mask *float64 + Mode *string + Shape *string + Share *bool + Size *float64 + SoftFail *bool + Title *string + Unit *string + Version *float64 + XMLDeclaration *bool + type RequestOption func(*requestOptions) + func WithHeader(name, value string) RequestOption + func WithMaxRetries(n int) RequestOption + func WithMethod(method string) RequestOption + type Response struct + Body []byte + ContentType string + Header http.Header + IsJSON bool + StatusCode int + func (r *Response) Decode(v any) error + func (r *Response) Map() (map[string]any, error) + type ResponseDecodingError struct + Err error + Message string + Response *Response + func (e *ResponseDecodingError) Error() string + func (e *ResponseDecodingError) Unwrap() error + type SerializationError struct + Err error + Message string + Param string + func (e *SerializationError) Error() string + func (e *SerializationError) Unwrap() error + type StatsParams struct + Engine *string + Path *string + type TransportError struct + Err error + Message string + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type WaitForJobOptions struct + Interval time.Duration + OnProgress func(job map[string]any) + Timeout time.Duration