View definition

func Wrap(l Listener, m mode) *T

Defined in


Wrap a net.Listener, returning a net.Listener which supports idle connection tracking and shutdown. Listeners can be placed in to one of three modes, exported as variables from this package: most users will probably want the “Automatic” mode.

Wrap is referenced in 3 repositories