common

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType int

EventType represents a heartbeat event.

const (
	EventReceive EventType = iota // EventReceive is a heartbeat ping.
	EventFail                     // EventFail is a manual failure.
	EventTest                     // EventTest is a test notification.
)

type HeartbeatState

type HeartbeatState string

HeartbeatState represents the internal state of a heartbeat actor.

const (
	HeartbeatStateIdle      HeartbeatState = "idle"      // Idle is the heartbeat initial state.
	HeartbeatStateActive    HeartbeatState = "active"    // Active is the heartbeat active state.
	HeartbeatStateGrace     HeartbeatState = "grace"     // Grace is the heartbeat grace state.
	HeartbeatStateMissing   HeartbeatState = "missing"   // Missing is the heartbeat missing state.
	HeartbeatStateFailed    HeartbeatState = "failed"    // Failed is the heartbeat failed state.
	HeartbeatStateRecovered HeartbeatState = "recovered" // Recovered is the heartbeat recovered state. Only used for sending "resolved" messages.
)

func (HeartbeatState) String

func (h HeartbeatState) String() string

String returns the HeartbeatState as string.

Jump to

Keyboard shortcuts

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