-
Notifications
You must be signed in to change notification settings - Fork 10
/
stats.go
39 lines (29 loc) · 1.1 KB
/
stats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2017 Tim Oster. All rights reserved.
// Use of this source code is governed by the MIT license.
// More information can be found in the LICENSE file.
package rmnp
var (
// StatSendBytes (atomic) counts the total amount of bytes send.
StatSendBytes uint64
// StatReceivedBytes (atomic) counts the total amount of bytes received.
// Not the same as StatProcessedBytes because received packets may be discarded.
StatReceivedBytes uint64
// StatProcessedBytes (atomic) counts the total size of all processed packets.
StatProcessedBytes uint64
)
var (
// StatRunningGoRoutines (atomic) counts all currently active goroutines spawned by rmnp
StatRunningGoRoutines uint64
// StatGoRoutinePanics (atomic) counts the amount of caught goroutine panics
StatGoRoutinePanics uint64
)
var (
// StatConnects (atomic) counts all successful connects
StatConnects uint64
// StatDeniedConnects (atomic) counts all denied connection attempts
StatDeniedConnects uint64
// StatDisconnects (atomic) counts all disconnects
StatDisconnects uint64
// StatTimeouts (atomic) counts all timeouts
StatTimeouts uint64
)