connectivity/

directory
v0.1.5 Latest Latest
Warning

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

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

README

WindShare connectivity

github.com/windshare/windshare/connectivity/... owns native peer negotiation, demand-driven multipath orchestration, ICE/gateway/socket/TURN 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
turnpath/ TURN delegation, renewal, recovery, replacement, and path admission
turncapacity/, turnroute/ Shared TURN admission/handoff capacity and per-generation route planning
relayplan/ Bounded deterministic relay candidate selection
senderrelay/, relayset/ Per-relay registration/recovery and coordinated multi-relay session admission

Validate

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

Directories

Path Synopsis
Package iceconfig describes immutable ICE inputs.
Package iceconfig describes immutable ICE inputs.
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 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 senderrelay owns one relay's registration for the lifetime of a share.
Package senderrelay owns one relay's registration for the lifetime of a share.
Package socketauthority owns bounded, independent per-path UDP endpoints.
Package socketauthority owns bounded, independent per-path UDP endpoints.
Package throughput decides optional growth from aggregate application progress.
Package throughput decides optional growth from aggregate application progress.
Package turncapacity owns shared TURN admission and bounded handoff capacity.
Package turncapacity owns shared TURN admission and bounded handoff capacity.
Package turnpath owns session-scoped delegated TURN paths.
Package turnpath owns session-scoped delegated TURN paths.
Package turnroute plans and schedules TURN egress independently of an ICE implementation.
Package turnroute plans and schedules TURN egress independently of an ICE implementation.
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