Documentation
¶
Overview ¶
Package replay implements strict native protocol consumption. It never starts an agent, interprets a story or performs a recorded tool's side effects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrDisconnected = errors.New("scripted disconnect")
Functions ¶
func Run ¶
func Run(ctx context.Context, document *recording.Document, limits recording.Limits, handshakes string, input, output *os.File, progressFD int) (err error)
Run owns duplicate protocol descriptors and the optional progress descriptor. Nonblocking descriptors register with Go's poller: closing them interrupts idle reads AND backpressured writes, including inherited process stdio. No reader/writer goroutine can outlive this call.
func RunStreams ¶
func RunStreams(ctx context.Context, document *recording.Document, limits recording.Limits, handshakes string, input io.ReadCloser, output io.WriteCloser, complete func() error) error
RunStreams applies the same strict replay engine to caller-owned closeable streams. The caller remains responsible for closing them to interrupt a blocked operation when ctx is canceled.
Types ¶
This section is empty.