connectivity/

directory
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: AGPL-3.0

README

WindShare connectivity

github.com/windshare/windshare/connectivity/... owns native peer negotiation, demand-driven multipath orchestration, ICE/gateway/socket path policies, and relay registration/admission outside core. Application workflows in engine assemble these packages over transport channels.

Package layout

Package Responsibility
v2signal/ Canonical E2E WebRTC signaling schema, codec, and validation
v2peer/, v2peer/peerset/ Peer negotiation/admission and demand-driven PeerSet orchestration
throughput/ Deterministic path growth and retirement decisions from aggregate progress
nativepeer/, pionpeer/ Native resource ownership and immutable Pion PeerConnection adaptation
networkstate/ Address and egress route snapshots with generation tracking
socketauthority/ Bounded, independent per-path UDP/TCP socket ownership and leases
reachability/, reachability/gateway/ Gateway port-mapping leases and reachability refresh
iceconfig/, icepolicy/ Immutable ICE inputs and candidate/endpoint selection policy
turnsession/ Demand-driven TURN offer coordination and sender-side credential grants
relayplan/ Bounded deterministic relay candidate selection
relayset/ Per-relay sender/receiver registration, recovery, and coordinated multi-relay session admission

Validate

GOWORK=off go test ./connectivity/...
make ci

Directories

Path Synopsis
Package iceconfig describes immutable ICE discovery inputs for a gathering generation.
Package iceconfig describes immutable ICE discovery inputs for a gathering generation.
Package icepolicy owns trusted, transport-independent ICE selection policy.
Package icepolicy owns trusted, transport-independent ICE selection policy.
Package nativepeer assembles demand-owned native connectivity resources.
Package nativepeer assembles demand-owned native connectivity resources.
Package networkstate freezes address and egress facts for a connectivity generation.
Package networkstate freezes address and egress facts for a connectivity generation.
Package pionpeer adapts one Pion PeerConnection to an immutable connectivity resource snapshot.
Package pionpeer adapts one Pion PeerConnection to an immutable connectivity resource snapshot.
Package publicdial pins untrusted discovery traffic to locally permitted public addresses.
Package publicdial pins untrusted discovery traffic to locally permitted public addresses.
Package reachability owns demand-bounded gateway leases, never ICE attempts.
Package reachability owns demand-bounded gateway leases, never ICE attempts.
gateway
Package gateway implements bounded, egress-bound gateway control protocols.
Package gateway implements bounded, egress-bound gateway control protocols.
Package relayplan makes bounded, deterministic relay choices from supplied facts.
Package relayplan makes bounded, deterministic relay choices from supplied facts.
Package relayset coordinates independent relay endpoint lifecycles.
Package relayset coordinates independent relay endpoint lifecycles.
Package socketauthority owns bounded, independent per-path UDP endpoints and optional passive TCP listeners under separate capacity ledgers.
Package socketauthority owns bounded, independent per-path UDP endpoints and optional passive TCP listeners under separate capacity ledgers.
Package throughput decides optional growth from aggregate application progress.
Package throughput decides optional growth from aggregate application progress.
Package turnsession owns the lifetime of TURN authorization for one authenticated share session.
Package turnsession owns the lifetime of TURN authorization for one authenticated share session.
Package v2peer terminates authenticated suite-02 peer-signaling operations at the Go sender and owns the corresponding Pion PeerConnections.
Package v2peer terminates authenticated suite-02 peer-signaling operations at the Go sender and owns the corresponding Pion PeerConnections.
internal/candidatewriter
Package candidatewriter isolates ordered ICE signaling I/O from peer lifecycle dispatch.
Package candidatewriter isolates ordered ICE signaling I/O from peer lifecycle dispatch.
peerset
Package peerset owns demand-driven peer path recovery.
Package peerset owns demand-driven peer path recovery.
Package v2signal owns the E2E WebRTC signaling schema.
Package v2signal owns the E2E WebRTC signaling schema.

Jump to

Keyboard shortcuts

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