20 lines
632 B
Go
20 lines
632 B
Go
package dht
|
|
|
|
import (
|
|
"expvar"
|
|
)
|
|
|
|
var (
|
|
read = expvar.NewInt("dhtRead")
|
|
readZeroPort = expvar.NewInt("dhtReadZeroPort")
|
|
readBlocked = expvar.NewInt("dhtReadBlocked")
|
|
readNotKRPCDict = expvar.NewInt("dhtReadNotKRPCDict")
|
|
readUnmarshalError = expvar.NewInt("dhtReadUnmarshalError")
|
|
readQuery = expvar.NewInt("dhtReadQuery")
|
|
readAnnouncePeer = expvar.NewInt("dhtReadAnnouncePeer")
|
|
announceErrors = expvar.NewInt("dhtAnnounceErrors")
|
|
writeErrors = expvar.NewInt("dhtWriteErrors")
|
|
writes = expvar.NewInt("dhtWrites")
|
|
expvars = expvar.NewMap("dht")
|
|
)
|