Commit Graph

4 Commits (3eb6b354788c74925f629bb04da2675ce8292bab)

Author SHA1 Message Date
Jonathan A. Sternberg e63498e217 fix(http): use a duration literal for the server's shutdown timeout
This follows the logging style guide more correctly.
2018-06-11 12:39:06 -05:00
Jonathan A. Sternberg eb83898c73 feat(cmd/transpilerd): follow the logging style guide for transpilerd
Introduce logging into the http server implementation for when the
server is shutting down and reporting when we receive a signal for a
hard shutdown.
2018-05-23 12:06:09 -05:00
Jonathan A. Sternberg d8e4f4f2e0 feat(cmd/transpilerd): update transpilerd to use http server package
The http package now contains a server that handles signals and proper
shutdown procedure. It has now been updated to use it.

The http package has also added a `ListenAndServe` convenience function
that is similar to the `net/http` one, but also takes in a logger and
will automatically use the most common signals when running an http
server.
2018-05-23 09:27:17 -05:00
Jonathan A. Sternberg 68ee1acd89 feat(http): add common code for running an http server
It handles graceful termination by listening to signals which will be
particularly useful for commands where the sole purpose is to run an
http server.
2018-05-23 08:51:13 -05:00