Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 Changes in this version + type Client struct + func New[T any](options Options[T]) (*Client[T], error) + func (c *Client[T]) Cancel(ctx context.Context, id string) (T, error) + func (c *Client[T]) Get(ctx context.Context, id string) (T, error) + func (c *Client[T]) Request(ctx context.Context, input any) (T, error) + func (c *Client[T]) Revoke(ctx context.Context, id string) (T, error) + func (c *Client[T]) Wait(ctx context.Context, id string) (T, error) + type Decoder func([]byte) (T, error) + type Error struct + Status int + func (e *Error) Error() string + type Options struct + BaseURL string + Credential string + Decode Decoder[T] + HTTPClient *http.Client + PollInterval time.Duration + Terminal func(T) bool