Versions in this module Expand all Collapse all v1 v1.5.4 Aug 31, 2026 Changes in this version + type Server struct + func NewServer(cfg *ServerConfig) *Server + func (s *Server) Addr() string + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + type ServerConfig struct + APIKeys map[string]float64 + Addr string + MaxWorkers int + type TaskItem struct + CreatedAt time.Time + ErrorMsg string + ID string + Payload captcha.TaskPayload + Solution captcha.Solution + Status string + UpdatedAt time.Time + type TaskQueue struct + func NewTaskQueue(ttl time.Duration) *TaskQueue + func (q *TaskQueue) Add(id string, payload captcha.TaskPayload) *TaskItem + func (q *TaskQueue) Complete(id string, sol captcha.Solution) error + func (q *TaskQueue) Fail(id string, errMsg string) error + func (q *TaskQueue) Get(id string) (*TaskItem, bool)