Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GimletLogger ¶
type GimletLogger struct {
LogRecvPacket func(message *mgsproto.ClientMessage)
LogSentPacket func(message *mgsproto.ClientMessage, attempt uint32)
LogError func(string)
LogFlag func(string)
LogInfo func(...any)
}
func EnableAllLogs ¶
func EnableAllLogs(logData bool) *GimletLogger
func NoLogging ¶
func NoLogging() *GimletLogger
type Stats ¶
type Stats struct {
OutOfOrderPacketsQueued atomic.Uint64
OutOfOrderPackets atomic.Uint64
NumPacketsRead atomic.Uint64
ControlPacketsRead atomic.Uint64
DataBytesRead atomic.Uint64
NumAcksReceived atomic.Uint64
NumUnknownPackets atomic.Uint64
NumFlags atomic.Uint64
NumPacketsSent atomic.Uint64
NumPingsSent atomic.Uint64
DataBytesSent atomic.Uint64
NumRetriesSent atomic.Uint64
UnackedSentPackets atomic.Uint64
}
Click to show internal directories.
Click to hide internal directories.