Documentation ¶ Index ¶ func New(cType string, l net.Listener) net.Listener Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(cType string, l net.Listener) net.Listener New returns a listener which increments a prometheus counter on each accepted connection. Use cType to specify the connection type, this is a prometheus label. Types ¶ This section is empty. Source Files ¶ View all Source files connectioncounter.go Click to show internal directories. Click to hide internal directories.