pkg/

directory
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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 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 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 for SQLite and PostgreSQL, sharing peer presence across a fleet of hubs.
Package sqldir is a SQL-backed directory.Directory for SQLite and PostgreSQL, sharing peer presence across a fleet of hubs.
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 — by x-tunnel-peer header, or by subdomain of a base domain — 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 — by x-tunnel-peer header, or by subdomain of a base domain — and dials it through that peer's tunnel.
Package token is the copy-paste enrollment token: the JWT that authenticates a peer, with the hub's tunnel URL in the audience claim.
Package token is the copy-paste enrollment token: the JWT that authenticates a peer, with the hub's tunnel URL in the audience claim.
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