log

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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
}

func (*Stats) String

func (s *Stats) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL