Documentation
¶
Overview ¶
Package peer implements APRS-IS core-peer links: server-to-server connections that exchange raw APRS packet lines (no login envelope), identified by the remote address. Each configured peer uses either UDP (connectionless datagrams) or TCP (a persistent stream), and a group may mix both.
Loop-prevention rules:
- Traffic from core peers is delivered to local clients.
- Traffic from local clients is relayed to core peers.
- Traffic does NOT pass between peers and upstream uplinks.
- A packet received from a peer is never echoed back to that peer.
Index ¶
Constants ¶
const WriterPrefix = uplink.WriterPeerPrefix
WriterPrefix tags stream packets that originated from a peer, as "peer:<id>". Consumers use it to avoid echoing packets back to their source and to keep peer/uplink traffic separate. It aliases the canonical tag defined in the uplink package.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init()
Init creates and starts a peer manager per configured group. It is a no-op when no peers are configured. The legacy single-group config ('peer') and the 'peergroups' list are both honoured.