server

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeServer

type BridgeServer struct {
	bridgev1.UnimplementedBridgeServiceServer
	// contains filtered or unexported fields
}

func New

func New(supervisor *bridge.Supervisor, registry *bridge.Registry, logger *slog.Logger, rl RateLimitConfig, serverInstanceID string, providerFallbacks map[string][]string, jwtVerifier *auth.JWTVerifier, certsDir string) *BridgeServer

func (*BridgeServer) AttachSession

func (*BridgeServer) ClaimWriter

func (*BridgeServer) EnrollClient

EnrollClient implements the EnrollClient RPC. It validates the one-time enrollment token, signs the client's CSR with the server's CA, registers the client's JWT public key, and returns the cert + CA bundle.

This RPC is exempt from JWT auth in the interceptor chain. In mTLS mode, the TLS handshake still requires a client certificate, so this RPC is only reachable without a client cert when the server runs in TLS mode. The enrollment token provides application-level authorization.

func (*BridgeServer) GetSession

func (*BridgeServer) Health

func (*BridgeServer) ListProviders

func (*BridgeServer) ListSessions

func (*BridgeServer) RegisterJWTKey

func (*BridgeServer) ReleaseWriter

func (*BridgeServer) ResizeSession

func (*BridgeServer) SetEnrollmentStore

func (s *BridgeServer) SetEnrollmentStore(store *enrollment.Store)

SetEnrollmentStore configures the enrollment token store for the EnrollClient RPC. When nil, enrollment is not available.

func (*BridgeServer) StartSession

func (*BridgeServer) StopSession

func (*BridgeServer) WriteInput

type RateLimitConfig

type RateLimitConfig struct {
	GlobalRPS                  float64
	GlobalBurst                int
	StartSessionPerClientRPS   float64
	StartSessionPerClientBurst int
	SendInputPerSessionRPS     float64
	SendInputPerSessionBurst   int
}

Jump to

Keyboard shortcuts

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