package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Functions

DebugInfo returns a string containing debug information about the tracked statistics.
Get returns the current socket statistics.
GetWithInterfaces is a variant of Get that returns the current socket statistics broken down by interface.
GetValidation is a variant of Get that returns external validation numbers for stats.
SetNetMon configures the sockstats package to monitor the active interface, so that per-interface stats can be collected.
WithSockStats instruments a context so that sockets created with it will have their statistics collected.

# Constants

No description provided by the author
control/controlclient/auto.go.
control/controlhttp/client.go.
derp/derphttp/derphttp_client.go.
net/dns/resolver/forwarder.go.
net/dns/resolver/forwarder.go.
net/dns/resolver/forwarder.go.
logtail/logtail.go.
wgengine/magicsock/magicsock.go.
wgengine/magicsock/magicsock.go.
net/netcheck/netcheck.go.
wgengine/netlog/logger.go.
net/portmapper/portmapper.go.
log/sockstatlog/logger.go.

# Structs

InterfaceSockStat contains the per-interface sent and received bytes for a socket instrumented with the WithSockStats() function.
InterfaceSockStats contains statistics for sockets instrumented with the WithSockStats() function, broken down by interface.
SockStat contains the sent and received bytes for a socket instrumented with the WithSockStats() function.
SockStats contains statistics for sockets instrumented with the WithSockStats() function.
ValidationSockStat contains the validation bytes for a socket instrumented with WithSockStats.
ValidationSockStats contains external validation numbers for sockets instrumented with WithSockStats.

# Type aliases

Label is an identifier for a socket that stats are collected for.