refactor(online): track count instead of raddr

This commit is contained in:
Haruue
2024-05-11 11:05:32 +08:00
parent 88eef7617f
commit ba9b3cdebb
3 changed files with 17 additions and 63 deletions

View File

@@ -196,6 +196,5 @@ type EventLogger interface {
// The implementation of this interface must be thread-safe.
type TrafficLogger interface {
Log(id string, tx, rx uint64) (ok bool)
LogOnline(id string, addr net.Addr)
LogOffline(id string, addr net.Addr)
LogOnlineStateChanged(id string, online bool)
}