lifecycle

package
v1.1.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 0 Imported by: 0

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"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL