pkg/

directory
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT

Directories

Path Synopsis
Package attach is the hub's tunnel front door: an http.Handler that accepts a peer's WebSocket upgrade, runs the holt handshake, and registers the resulting tunnel in the registry.
Package attach is the hub's tunnel front door: an http.Handler that accepts a peer's WebSocket upgrade, runs the holt handshake, and registers the resulting tunnel in the registry.
Package blocklist is the hub's identity denylist: the peer ids refused at attach time, durable across restarts.
Package blocklist is the hub's identity denylist: the peer ids refused at attach time, durable across restarts.
postgres
Package postgres is the PostgreSQL flavour of the SQL-backed denylist.
Package postgres is the PostgreSQL flavour of the SQL-backed denylist.
sqlite
Package sqlite is the SQLite flavour of the SQL-backed denylist.
Package sqlite is the SQLite flavour of the SQL-backed denylist.
Package dial is the client half of the holt: a persistent attach loop that dials the hub over a WebSocket, serves an http.Handler over the reverse tunnel, and redials with jittered backoff until the context ends or the hub sends a terminal GoAway.
Package dial is the client half of the holt: a persistent attach loop that dials the hub over a WebSocket, serves an http.Handler over the reverse tunnel, and redials with jittered backoff until the context ends or the hub sends a terminal GoAway.
Package directory defines peer presence: which peer is attached to which hub, since when.
Package directory defines peer presence: which peer is attached to which hub, since when.
postgres
Package postgres is the PostgreSQL flavour of the SQL-backed presence directory.
Package postgres is the PostgreSQL flavour of the SQL-backed presence directory.
sqldir
Package sqldir is a SQL-backed directory.Directory: a shared peer-presence store so a fleet of hubs can each see who is attached where.
Package sqldir is a SQL-backed directory.Directory: a shared peer-presence store so a fleet of hubs can each see who is attached where.
sqlite
Package sqlite is the SQLite flavour of the SQL-backed presence directory.
Package sqlite is the SQLite flavour of the SQL-backed presence directory.
Package jwtauth is the hub's attach-time authentication: it issues and verifies the HMAC-SHA256 JWTs peers present, holds the signing secret so it can be rotated live (Secret), and enforces the whole check in front of the tunnel handler (Guard).
Package jwtauth is the hub's attach-time authentication: it issues and verifies the HMAC-SHA256 JWTs peers present, holds the signing secret so it can be rotated live (Secret), and enforces the whole check in front of the tunnel handler (Guard).
Package peername validates peer identities.
Package peername validates peer identities.
Package registry keeps the hub's live tunnels keyed by peer ID and lets the application dial "through" any attached peer with an ordinary http.RoundTripper.
Package registry keeps the hub's live tunnels keyed by peer ID and lets the application dial "through" any attached peer with an ordinary http.RoundTripper.
Package reqlog is the live view of requests crossing a tunnel.
Package reqlog is the live view of requests crossing a tunnel.
Package proxy is the hub's data plane: an http.Handler that picks the peer a request targets and dials it through that peer's tunnel.
Package proxy is the hub's data plane: an http.Handler that picks the peer a request targets and dials it through that peer's tunnel.
Package token is the copy-paste enrollment token that carries what a peer needs to join: the JWT that authenticates it, and the hub's tunnel URL to dial.
Package token is the copy-paste enrollment token that carries what a peer needs to join: the JWT that authenticates it, and the hub's tunnel URL to dial.
Package tunneltype names what a peer carries over its tunnel.
Package tunneltype names what a peer carries over its tunnel.

Jump to

Keyboard shortcuts

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