localdemoworker

package
v0.0.0-...-804b954 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package localdemoworker composes the declared deterministic local Stack fixture. It is intentionally not a production model-provider adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, role roles.Config, lookup Lookup, logger *slog.Logger) error

Run drains durable model or tool outbox work through the declared local fixture. It is only reachable after roles.Parse has accepted local-demo-v1.

Types

type Lookup

type Lookup func(string) (string, bool)

Lookup reads one explicitly injected process environment value.

type Wait

type Wait func(context.Context, time.Duration) error

Wait blocks until the next local worker scan. It is injected so recovery tests can drive an explicit scan boundary without sleeping on wall-clock time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址