netevents

package
v2.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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialContextFunc

func DialContextFunc(dial func(context.Context, string, string) (net.Conn, error)) func(context.Context, string, string) (net.Conn, error)

DialContextFuncWith returns a wrapper for dial which logs with the default logger all opening and closing events that occur on the connections returned by the dial function.

func DialContextFuncWith

func DialContextFuncWith(logger *events.Logger, dial func(context.Context, string, string) (net.Conn, error)) func(context.Context, string, string) (net.Conn, error)

DialContextFuncWith returns a wrapper for dial which logs with logger all opening and closing events that occur on the connections returned by the dial function.

func DialFunc

func DialFunc(dial func(string, string) (net.Conn, error)) func(string, string) (net.Conn, error)

DialFunc returns a wrapper for dial which logs with the default logger all opening and closing events that occur on the connections returned by the dial function.

func DialFuncWith

func DialFuncWith(logger *events.Logger, dial func(string, string) (net.Conn, error)) func(string, string) (net.Conn, error)

DialFuncWith returns a wrapper for dial which logs with logger all opening and closing events that occur on the connections returned by the dial function.

func NewHandler

func NewHandler(handler netx.Handler) netx.Handler

NewHandler returns a wrapper for handler which logs with the default logger all opening and closing events that occur on the connections servied by the handler.

func NewHandlerWith

func NewHandlerWith(logger *events.Logger, handler netx.Handler) netx.Handler

NewHandlerWith returns a wrapper for handler which logs with logger all opening and closing events that occur on the connections served by the handler with logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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