Documentation
¶
Overview ¶
Package remote tunnels the web UI server through a self-hosted rendezvous relay so a phone or another machine can reach it without inbound ports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PairURL ¶
func PairURL(relay string, c Credentials) (string, error)
PairURL keeps the secret in the fragment, outside HTTP paths and referrers. The link remains valid for this workspace server's lifetime.
Types ¶
type ClientOptions ¶
type ClientOptions struct {
Relay string
Token string
// Credentials are generated when empty.
Credentials Credentials
// OnStatus receives connection state changes.
OnStatus func(connected bool, err error)
}
type Credentials ¶
Credentials identify one workspace on a relay. The relay learns the key when the workspace registers; a phone presents the same key once when pairing.
func NewCredentials ¶
func NewCredentials() Credentials
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
Relay routes browser requests to workspace servers. Servers register over an outbound WebSocket; browsers pair via a secret link, then use a cookie. It holds tunnel connections, not agent or chat session state.
func (*Relay) ListenAndServe ¶
ListenAndServe runs an HTTP relay behind a gateway that terminates TLS.