health

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package health provides functions to check and update the health of the agent. It uses a file in the temp directory to store the timestamp of the last connection attempt. If the timestamp is older than 90 seconds, the agent is considered unhealthy. NB: The agent must be started with the Start() method to be considered healthy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check() error

Check checks if the agent is connected by checking the modification time of the health file

func CleanUp

func CleanUp() error

CleanUp removes the health file

func Update

func Update() error

Update updates the modification time of the health file

Types

This section is empty.

Jump to

Keyboard shortcuts

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