We are happy to announce general availability of github.com/cybozu-go/cmd ,
a framework/toolkit to create commands that do stop/restart gracefully with 
helpful logs.

Source: https://github.com/cybozu-go/cmd
Tutorial: https://github.com/cybozu-go/cmd/wiki/Tutorial

Features include:
* Context-based goroutine management.
* Signal handlers.
* Graceful stop/restart for any kind of network servers.
* Logging options.
* Enhanced http.Server.
* Ultra fast UUID-like ID generator.
* Activity tracking.
* Support for systemd socket activation.

I have also wrote a blog article about how to hack http.Server for 
transparent
access logging and graceful stop:

http://ymmt2005.hatenablog.com/entry/2016/09/01/How_to_hack_Go%27s_http_Server_correctly

All our open source Go products are already using cybozu-go/cmd.
For example, cybozu-go/usocksd is a SOCKS4/5 server library and command 
that can
stop/restart gracefully.  For more information, visit 
https://github.com/cybozu-go .

Even if you do not like the idea of framework, still we hope you can find 
useful tools in it.

Hirotaka Yamamoto (@ymmt2005)

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to