heartbeat

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreeDisk added in v0.9.1

func GetFreeDisk() int64

func GetTotalMemory added in v0.9.1

func GetTotalMemory() int64

func SendOnce added in v0.5.0

func SendOnce(ctx context.Context, client *api.Client, agentVersion, resticVersion string, startedAt time.Time)

SendOnce sends a single heartbeat via HTTP. Used as a fallback when WebSocket is unavailable.

func Start

func Start(ctx context.Context, client *api.Client, agentVersion, resticVersion string, startedAt time.Time, interval time.Duration)

Start sends a heartbeat every interval until ctx is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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