Skip to main content

Module wire

Module wire 

Source

Modules§

listener
RedWire frame handlers — pure request/response transformations shared by the RedWire session loop. Each handler takes a parsed payload and returns a length-prefixed response envelope; the session adapts the envelope into a RedWire frame via rewrap_handler_response.
postgres
PostgreSQL wire protocol compatibility layer (Phase 3.1 PG parity).
protocol
RedDB Wire Protocol — binary TCP, zero JSON overhead.
redwire
RedWire — RedDB’s binary TCP / TLS wire protocol with auth handshake, multiplex, compression, and version negotiation.
tls

Structs§

PgWireConfig
Startup-tuned configuration for the PG wire listener.
RedWireConfig
WireTlsConfig
TLS configuration for the wire protocol.

Constants§

REDWIRE_MAGIC
Discriminator byte every RedWire client sends as the very first byte off the wire. The service-router detector keys off this (and so does the standalone listener path).

Functions§

start_pg_wire_listener
Spawn the PG wire listener. Blocks until the listener errors out. Each connection is handled in its own tokio task.
start_redwire_listener
Start a plain-TCP RedWire listener on the configured bind addr.
start_redwire_listener_on
Start a RedWire listener on an already-bound TCP listener (used by the service router which owns the public socket and proxies to a loopback redwire backend).
start_redwire_tls_listener
Start a RedWire listener wrapped in TLS.
start_redwire_unix_listener
Start a RedWire listener on a Unix domain socket.