Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandoffClaims ¶
type HandoffClaims struct {
jwt.RegisteredClaims
Email string `json:"email,omitempty"`
OrgRole string `json:"org_role,omitempty"`
TokenUse string `json:"token_use"`
}
HandoffClaims are the JWT claims for browser direct-mode connections.
type Server ¶
type Server struct {
OnPTY ws.PTYHandler
// contains filtered or unexported fields
}
Server is a lightweight HTTP server for direct-mode wing connections. Browsers connect directly to the wing via WebSocket, bypassing the relay for PTY I/O.
func (*Server) Addr ¶ added in v0.145.0
Addr returns the bound address after Start or StartAsync succeeds.
func (*Server) SetRelayPublicKey ¶ added in v0.145.0
SetRelayPublicKey atomically publishes the coordinator key used to verify short-lived browser handoff tokens.
func (*Server) StartAsync ¶ added in v0.145.0
StartAsync binds synchronously, then serves in the background. Callers can safely defer Close after this returns without racing a not-yet-created listener.
Click to show internal directories.
Click to hide internal directories.