Controller can register functions to run at shutdown

This commit is contained in:
Matthew Holt
2015-03-26 23:22:48 -06:00
parent 1146a9b90b
commit da72a5fbcd
3 changed files with 9 additions and 2 deletions
+3
View File
@@ -71,6 +71,9 @@ type (
// Startup registers a function to execute when the server starts.
Startup(func() error)
// Shutdown registers a function to execute when the server exits.
Shutdown(func() error)
// Root returns the file path from which the server is serving.
Root() string