Versions in this module Expand all Collapse all v0 v0.2.0 Jul 29, 2026 v0.1.2 Jul 28, 2026 Changes in this version + const CmdPeerAdd + const CmdPeerList + const CmdPeerRemove + const CmdPeerUpdate + const CmdStatus + const SourceConfig + const SourceStore + func Decode(data []byte, v any) error + func Encode(v any) ([]byte, error) + type PeerSpec struct + Address string + ExpiresAt string + Name string + PublicKey string + QuotaBytes uint64 + type PeerView struct + Address string + Connected bool + ExpiresAt string + Name string + PublicKey string + QuotaBytes uint64 + Role string + RxBytes uint64 + Source string + TxBytes uint64 + UsedBytes uint64 + type RemoteConfig struct + PrivateKey noise.PrivateKey + SNI string + Server string + ServerKey noise.PublicKey + type Request struct + Command string + Peer *PeerSpec + PublicKey string + Update *UpdateSpec + type Response struct + Error string + OK bool + Peers []PeerView + Status *StatusView + func Errorf(format string, args ...any) Response + func Local(socketPath string, req Request) (Response, error) + func Remote(ctx context.Context, cfg RemoteConfig, req Request) (Response, error) + type StatusView struct + Address string + Connected int + Listen string + Peers int + PublicKey string + Subnet string + TLSServerName string + Uptime string + type UpdateSpec struct + ClearExpiry bool + ExpiresAt string + QuotaBytes *uint64 + ResetUsage bool v0.1.0 Jul 28, 2026