toolman.org/net/lameduck (go): Package lameduck provides coordinated lame-duck behavior for any service implementing this package's Server interface.  By default, lame-duck mode is triggered by receipt of SIGINT or SIGTERM and the default lame-duck period is 3 seconds.  Options are provided to alter these (an other) values.  This package is written assuming behavior similar to the standard library's http.Server -- in that its Shutdown and Close methods exhibit behavior matching the lameduck.Server interface -- however, in order to allow other types to be used, a Serve method that returns nil is also needed.
Keywords: golang|golib|lameduck|library|network