package
5.4.0
Repository: https://github.com/segmentio/stats.git
Documentation: pkg.go.dev

# Functions

NewConn returns a net.Conn object that wraps c and produces metrics on the default engine.
NewConnWith returns a net.Conn object that wraps c and produces metrics on eng.
NewHandler returns a Handler object that warps hdl and produces metrics on the default engine.
NewHandlerWith returns a Handler object that warps hdl and produces metrics on eng.
NewListener returns a new net.Listener which uses the stats.DefaultEngine.
NewListenerWith returns a new net.Listener with the provided *stats.Engine.

# Interfaces

Handler is an interface that can be implemented by types that serve network connections.