Versions in this module Expand all Collapse all v0 v0.0.5 Jan 27, 2025 Changes in this version + type CheckHandler func(int) error + type Client interface + ListQueuedTasks func(context.Context) ([]QueueResult, error) + QueueState func(context.Context, string) (bool, error) + QueueTask func(context.Context, QueueRequest) (QueueResponse, error) + QueueTaskResult func(context.Context, string) (QueueResult, error) + func NewClient(http *http.Client, cfg ClientConfig) Client + type ClientConfig struct + Endpoint string + Model string + Token string + type DoHandler func([]byte) error + type QueueRequest struct + Model string + Prompt string + Style string + type QueueResponse struct + Pool string + Result QueueResult + State string + Task string + type QueueResult struct + Duration float64 + Model string + Style string + Text string + type Task interface + Queue func(context.Context, string) error + Result func(context.Context) (string, error) + Wait func(context.Context) error + func NewTask(http *http.Client, cfg TaskConfig) Task + type TaskConfig struct + Endpoint string + Model string + Style string + Token string