Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
porthole
command
Command porthole exposes local services through a porthole server.
|
Command porthole exposes local services through a porthole server. |
|
portholed
command
Command portholed is the porthole server.
|
Command portholed is the porthole server. |
|
internal
|
|
|
auth
Package auth implements porthole client tokens: `ph_<id>_<secret>`.
|
Package auth implements porthole client tokens: `ph_<id>_<secret>`. |
|
cli/clientcmd
Package clientcmd implements the command line of the porthole client binary.
|
Package clientcmd implements the command line of the porthole client binary. |
|
cli/servercmd
Package servercmd provides the `portholed serve` command.
|
Package servercmd provides the `portholed serve` command. |
|
cli/tokencmd
Package tokencmd implements "portholed token create|list|revoke".
|
Package tokencmd implements "portholed token create|list|revoke". |
|
client
Package client implements the porthole client: one outbound session to the server, tunnel registration, forwarding of data streams to local targets, and reconnection with exponential backoff.
|
Package client implements the porthole client: one outbound session to the server, tunnel registration, forwarding of data streams to local targets, and reconnection with exponential backoff. |
|
config
Package config loads and validates the portholed server configuration (DESIGN.md §3.9).
|
Package config loads and validates the portholed server configuration (DESIGN.md §3.9). |
|
proto
Package proto implements the porthole control protocol described in docs/protocol.md: length-prefixed JSON frames exchanged on the control stream and at the start of data streams.
|
Package proto implements the porthole control protocol described in docs/protocol.md: length-prefixed JSON frames exchanged on the control stream and at the start of data streams. |
|
server
Package server implements portholed: it accepts client sessions over WebSocket+yamux (docs/protocol.md), keeps the registry of tunnels and routes public HTTP and TCP traffic into them (DESIGN.md §3.5).
|
Package server implements portholed: it accepts client sessions over WebSocket+yamux (docs/protocol.md), keeps the registry of tunnels and routes public HTTP and TCP traffic into them (DESIGN.md §3.5). |
|
store
Package store persists server state: client tokens (v0.1) and port reservations (v0.2).
|
Package store persists server state: client tokens (v0.1) and port reservations (v0.2). |
|
transport
Package transport provides the multiplexed session between a porthole client and server.
|
Package transport provides the multiplexed session between a porthole client and server. |
Click to show internal directories.
Click to hide internal directories.