direct

package
v0.137.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 11 Imported by: 0

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"`
}

HandoffClaims are the JWT claims for browser direct-mode connections.

type Server

type Server struct {
	RelayPubKey *ecdsa.PublicKey // relay's ES256 public key for JWT verification
	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) Close

func (s *Server) Close() error

Close stops the listener.

func (*Server) Start

func (s *Server) Start(addr string) error

Start begins listening on the given address.

Jump to

Keyboard shortcuts

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