restart

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package restart tracks whether the running process has accumulated configuration changes that require a restart to take effect. Kept in its own package (not config) so any request handler — webui, restapi, OIDC — can flip the flag without pulling in unrelated config dependencies.

Current users: OIDC provider mutations (add/update/delete). Session TTL and registration_mode take effect immediately and do NOT mark the flag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mark

func Mark()

Mark records that the process now holds unapplied config. The flag is process-scoped: it resets to false on restart.

func Pending

func Pending() bool

Pending reports whether a restart is currently required.

func ResetForTest

func ResetForTest()

ResetForTest clears the flag. Tests only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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