monitor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker records completed work, not a separate heartbeat that could keep reporting healthy while the real worker is stuck.

func NewWorker

func NewWorker(enabled bool, budget time.Duration) *Worker

func (*Worker) Begin

func (m *Worker) Begin(now time.Time)

func (*Worker) End

func (m *Worker) End(now time.Time, err error)

func (*Worker) Snapshot

func (m *Worker) Snapshot(now time.Time) ranjit.WorkerStatus

func (*Worker) Stop

func (m *Worker) Stop()

Jump to

Keyboard shortcuts

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