Documentation
¶
Overview ¶
Package relay is the DERP relay on the harness's one port. Workers reach it as a WebSocket at /derp through the tunnel, which passes no other upgrade. DERP authenticates a client by its node key, so the routes sit outside the api key check.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(mux *http.ServeMux, s *derpserver.Server)
Handle serves s on mux at /derp, and the latency probes clients send without UDP at /derp/probe and /derp/latency-check.
func New ¶
func New() *derpserver.Server
New returns a relay with a new node key each start. Clients learn the key in each DERP handshake and the relay map carries none, so nothing pins it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.