heartbeat

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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