monitor

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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 Monitor

type Monitor interface {
	Start(ctx context.Context)
}

type RestartReason

type RestartReason int
const (
	ReasonNone RestartReason = iota
	ReasonWarning
	ReasonSoftRestart
	ReasonForceRestart
)

Jump to

Keyboard shortcuts

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