netstats

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(c net.Conn) net.Conn

NewConn returns a net.Conn object that wraps c and produces metrics on the default engine.

func NewConnWith

func NewConnWith(eng *stats.Engine, c net.Conn) net.Conn

NewConn returns a net.Conn object that wraps c and produces metrics on eng.

func NewHandler

func NewHandler(handler netx.Handler) netx.Handler

NewHandler returns a netx.Handler object that warps handler and produces metrics on the default engine.

func NewHandlerWith

func NewHandlerWith(eng *stats.Engine, handler netx.Handler) netx.Handler

NewHandlerWith returns a netx.Handler object that warps handler and produces metrics on eng.

func NewListener

func NewListener(lstn net.Listener) net.Listener

func NewListenerWith

func NewListenerWith(eng *stats.Engine, lstn net.Listener) net.Listener

Types

This section is empty.

Jump to

Keyboard shortcuts

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