]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: add PeerStats js/peer-stats
authorJosh Bleecher Snyder <josh@tailscale.com>
Tue, 26 Jan 2021 18:54:59 +0000 (10:54 -0800)
committerJosh Bleecher Snyder <josh@tailscale.com>
Tue, 26 Jan 2021 21:29:34 +0000 (13:29 -0800)
commitcda9f6e73a3bf3af09481bf31d57cf35c8b342de
treef0d126d5a30ecc2685e19c8e4dd1ea555727a47f
parent23b2790aa06270485f3d951132609afaeb888c28
device: add PeerStats

Per-peer statistics are the sort of thing
clients refresh very frequently, for UIs.

They are available via UAPI, but the serialization
and deserialization is quite heavy for frequent use.

This commit adds a very cheap, direct means of
retrieving peer stats.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/stats.go [new file with mode: 0644]