Versions in this module Expand all Collapse all v0 v0.1.0 Oct 8, 2026 Changes in this version + type Options struct + Clock func() time.Time + DefaultTTLMS *int64 + ID func() (string, error) + PollIntervalMS int64 + ValidateInput func(context.Context, tasks.Record, string, tasks.InputRequest, json.RawMessage) error + type Service struct + func New(store tasks.Store, options Options) (*Service, error) + func (s *Service) Cancel(ctx context.Context, owner tasks.Owner, id string) (tasks.Acknowledgement, error) + func (s *Service) Complete(ctx context.Context, owner tasks.Owner, id string, result json.RawMessage) error + func (s *Service) Create(ctx context.Context, owner tasks.Owner, caps schema.ClientCapabilities, ...) (tasks.CreateTaskResult, error) + func (s *Service) Fail(ctx context.Context, owner tasks.Owner, id string, rpcError *tasks.RPCError) error + func (s *Service) Get(ctx context.Context, owner tasks.Owner, id string) (tasks.GetTaskResult, error) + func (s *Service) MarkCancelled(ctx context.Context, owner tasks.Owner, id string) error + func (s *Service) Notification(ctx context.Context, owner tasks.Owner, id string) (tasks.TaskStatusNotification, error) + func (s *Service) PrivateRecord(ctx context.Context, owner tasks.Owner, id string) (tasks.Record, error) + func (s *Service) RequireInput(ctx context.Context, owner tasks.Owner, id string, ...) error + func (s *Service) SetMetadata(ctx context.Context, owner tasks.Owner, id, message string, ...) error + func (s *Service) Update(ctx context.Context, owner tasks.Owner, id string, ...) (tasks.Acknowledgement, error)