feat: traffic logger with disconnect

This commit is contained in:
tobyxdd
2023-06-08 20:55:08 -07:00
parent 5b54edd09a
commit 4334d8afb8
4 changed files with 66 additions and 18 deletions

View File

@@ -180,5 +180,5 @@ type EventLogger interface {
// bandwidth limits or post-connection authentication, for example.
// The implementation of this interface must be thread-safe.
type TrafficLogger interface {
Log(id string, tx, rx uint64) bool
Log(id string, tx, rx uint64) (ok bool)
}