grace/readme.md

22 lines
975 B
Markdown
Raw Normal View History

2012-07-08 05:38:18 +08:00
go.grace [![Build Status](https://secure.travis-ci.org/daaku/go.grace.png)](http://travis-ci.org/daaku/go.grace)
2012-06-05 12:56:51 +08:00
========
Package grace provides a library that makes it easy to build socket
based servers that can be gracefully terminated & restarted (that is,
without dropping any connections).
It provides a convenient API for HTTP servers, especially if you need to listen
on multiple ports (for example a secondary internal only admin server).
Additionally it is implemented using the same API as systemd providing [socket
activation](http://0pointer.de/blog/projects/socket-activation.html)
compatibility to also provide lazy activation of the server.
2012-06-05 12:56:51 +08:00
Demo HTTP Server with graceful termination and restart:
2012-07-08 05:38:18 +08:00
https://github.com/daaku/go.grace/blob/master/gracedemo/demo.go
2012-06-05 12:56:51 +08:00
http level graceful termination and restart:
2013-03-26 04:53:07 +08:00
http://godoc.org/github.com/daaku/go.grace/gracehttp
2012-06-05 12:56:51 +08:00
net.Listener level graceful termination and restart:
2013-03-26 04:53:07 +08:00
http://godoc.org/github.com/daaku/go.grace