mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-30 18:45:18 -04:00
Controller can register functions to run at shutdown
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user