add comments on what statuses mean

This commit is contained in:
Callan Bryant 2020-03-03 23:37:58 +00:00
parent d8bfa083d2
commit 03b0a5d4fb
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

View File

@ -8,9 +8,13 @@ import (
type Status int
const (
// Host has not been loaded into wireguard yet
Pending = iota
// Host has not transferred anything (not even a keepalive) for 30 seconds
Offline
// Host has transferred something in the last 30 seconds, keepalive counts
Online
// Host has not connected for 28 days and may be removed
Expired
)