replay

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

Jump to

Keyboard shortcuts

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