Help us shape the future of Go! Take the 2026 Go Developer Survey

relay

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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