bump

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownHeartbeat = errors.New("unknown heartbeat id")

ErrUnknownHeartbeat signals that the heartbeat ID is not registered.

Functions

func Fail

func Fail(
	ctx context.Context,
	mgr *heartbeat.Manager,
	hist *servicehistory.Recorder,
	logger *slog.Logger,
	id string,
	source string,
	method string,
	userAgent string,
) error

Fail records a manual failure and updates the in-memory state.

func Receive

func Receive(
	ctx context.Context,
	mgr *heartbeat.Manager,
	hist *servicehistory.Recorder,
	logger *slog.Logger,
	id string,
	source string,
	method string,
	userAgent string,
) error

Receive records a heartbeat bump and updates the in-memory state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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