transport

package
v0.1.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 9 Imported by: 1 module, 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 transport supplies owned byte streams independently of the CS API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebSocket

func NewWebSocket(conn *websocket.Conn) io.ReadWriteCloser

func Run

func Run(ctx context.Context, input io.Reader, output, stderr io.Writer, executable string, args ...string) error

Run executes a bounded bootstrap command. Cancellation kills its process group so SSH proxy children cannot keep inherited descriptors open.

func Start

func Start(executable string, args ...string) (io.ReadWriteCloser, error)

Start launches a protocol peer without a terminal. stdout carries frames and stderr remains diagnostic output. Close always reaps the process.

func StartIn

func StartIn(directory, executable string, args ...string) (io.ReadWriteCloser, error)

StartIn starts a headless process beside its workspace.

func StartPeerIn

func StartPeerIn(directory, executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)

StartPeerIn owns a protocol peer in its workspace, including EOF shutdown.

func StartPeerWithEnv

func StartPeerWithEnv(executable string, stderr io.Writer, env []string, args ...string) (io.ReadWriteCloser, error)

StartPeerWithEnv supplies an environment only to this child process.

func StartPeerWithOutput

func StartPeerWithOutput(executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)

StartPeerWithOutput owns a protocol peer, including graceful EOF shutdown.

func StartWithOutput

func StartWithOutput(directory, executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)

StartWithOutput supplies a separate stderr sink; stdout stays protocol-only.

Types

type Stdio

type Stdio struct{}

Stdio is used by the standalone server and the GUI's headless child mode.

func (Stdio) Close

func (Stdio) Close() error

func (Stdio) Read

func (Stdio) Read(p []byte) (int, error)

func (Stdio) Write

func (Stdio) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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