server

command
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command server is a standalone holt hub with a real identity: it accepts reverse tunnels from peers on one port and reaches those peers on another by dialing back THROUGH their tunnels.

Peers authenticate with a bearer token that maps to their identity; the hub keys tunnels by that authenticated id, never by anything the peer asserts in the handshake. A peer with an unknown token is rejected at the upgrade and never lands in the registry.

go run ./examples/authenticated/server

Then run one or more peers (see ../client) and:

curl -H 'x-tunnel-peer: alice' localhost:7202/hello      # reach alice through her tunnel
curl -H 'x-tunnel-peer: bob'   localhost:7202/time

Jump to

Keyboard shortcuts

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