silkd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn frames a byte stream (typically the upgraded relay connection) into silkd RPCs. Reads are single-consumer; Send is safe for concurrent use so a stdin pump can interleave with the caller.

func NewConn

func NewConn(rwc io.ReadWriteCloser) *Conn

NewConn wraps rwc; the caller keeps ownership of closing via Close.

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Recv

func (c *Conn) Recv() (wire.Response, error)

Recv reads the next response frame; io.EOF signals a clean close.

func (*Conn) Send

func (c *Conn) Send(r wire.Request) error

Send writes one request frame.

Directories

Path Synopsis
Package silkdtest fakes a silkd daemon for host-side tests: deterministic frame semantics over any listener, plus the hybrid-vsock muxer handshake for tests that dial a UDS the way sandboxd does.
Package silkdtest fakes a silkd daemon for host-side tests: deterministic frame semantics over any listener, plus the hybrid-vsock muxer handshake for tests that dial a UDS the way sandboxd does.

Jump to

Keyboard shortcuts

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