Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContextFunc ¶
func DialContextFunc(logger *events.Logger, dial func(context.Context, string, string) (net.Conn, error)) func(context.Context, string, string) (net.Conn, error)
DialContextFunc returns a wrapper for dial which logs opening and closing events that occur on the connections returned by the function.
The logger may be nil, in that case the default logger is used to report the connection events.
func DialFunc ¶
func DialFunc(logger *events.Logger, dial func(string, string) (net.Conn, error)) func(string, string) (net.Conn, error)
DialFunc returns a wrapper for dial which logs opening and closing events that occur on the connections returned by the function.
The logger may be nil, in that case the default logger is used to report the connection events.
func NewHandler ¶
NewHandler returns a wrapper for handler which logs opening and closing events that occur on the connections served by the handler with logger.
The logger may be nil, in that case the default logger is used to report the connection events.
Types ¶
This section is empty.