Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2026 Changes in this version + var ErrConflict = errors.New("idempotencycommand: source fingerprint conflict") + var ErrInProgress = errors.New("idempotencycommand: operation in progress") + var ErrTerminalFailure = errors.New("idempotencycommand: operation terminally failed") + type Handler func(context.Context) ([]byte, map[string]string, error) + type Options struct + Lease time.Duration + Service *idempotency.Service + TransitionTimeout time.Duration + type Request struct + Caller string + Fingerprint idempotency.Fingerprint + Name string + Namespace string + SourceID string + Tenant string + type Result struct + Metadata map[string]string + Outcome idempotency.Outcome + Replayed bool + Result []byte + type Runner struct + func New(options Options) (*Runner, error) + func (r *Runner) Run(ctx context.Context, request Request, handler Handler) (Result, error)