Documentation
¶
Overview ¶
Package monitor implements health checking and automatic restart logic for managed daemons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthMonitor ¶
type HealthMonitor struct {
// contains filtered or unexported fields
}
func NewHealthMonitor ¶
func NewHealthMonitor( mgr monitorManager, db *database.DB, logger *slog.Logger, healthConfig *config.HealthConfig, shutdownConfig config.ShutdownConfig, ) *HealthMonitor
func (*HealthMonitor) Start ¶
func (hm *HealthMonitor) Start(ctx context.Context)
type RestartReason ¶
type RestartReason int
const ( ReasonNone RestartReason = iota ReasonWarning ReasonSoftRestart ReasonForceRestart )
Click to show internal directories.
Click to hide internal directories.