Documentation
¶
Overview ¶
Package lifecycle carries process-level requests without coupling web RPC handlers to the server runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestRestart ¶
func RequestRestart(reason RestartReason)
RequestRestart asks the running server to shut down cleanly and exit. A pending request is sufficient because the process will be replaced.
func RestartRequests ¶
func RestartRequests() <-chan RestartReason
RestartRequests returns process restart requests for the server runtime.
Types ¶
type RestartReason ¶
type RestartReason string
RestartReason identifies why the current process must restart.
const RestartForMetricStoreStructureUpgrade RestartReason = "metric-store-structure-upgrade"
Click to show internal directories.
Click to hide internal directories.