Documentation
¶
Overview ¶
Package peerexchange orchestrates peer endpoint exchange for plexd mesh nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds the configuration for peer endpoint exchange. It embeds nat.Config to reuse NAT traversal settings.
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults()
ApplyDefaults sets default values for zero-valued fields.
type Exchanger ¶
type Exchanger struct {
// contains filtered or unexported fields
}
Exchanger orchestrates peer endpoint exchange: STUN discovery and control plane reporting.
func NewExchanger ¶
func NewExchanger(discoverer *nat.Discoverer, cpClient *api.ControlPlane, cfg Config, logger *slog.Logger) *Exchanger
NewExchanger creates a new Exchanger.
func (*Exchanger) LastResult ¶
func (e *Exchanger) LastResult() *nat.DiscoveryResult
LastResult returns the most recently discovered NAT info.
Click to show internal directories.
Click to hide internal directories.