heartbeat

package
v0.0.1-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDistribution

func GetDistribution() types.Distribution

func GetHeartbeatInfo

func GetHeartbeatInfo() *types.HeartbeatInfo

func InjectHeartbeatInfoHeaders

func InjectHeartbeatInfoHeaders(req *http.Request, heartbeatInfo *types.HeartbeatInfo)

func SendAppHeartbeat

func SendAppHeartbeat() error

func Start

func Start() error

Start will configure and start a heartbeat cron job for the app to send checkins to the server: if enabled, and cron job was NOT found: add a new cron job to send heartbeats if enabled, and a cron job was found, update the existing cron job with the latest cron spec if disabled: stop the current running cron job (if exists) no-op for airgap applications

func Stop

func Stop()

Stop will stop a running cron job (if exists) for the app

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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