Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatchFunc ¶
DispatchFunc sends heartbeat output to a target session.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service periodically probes runtime health and sends output to the most recently active session.
func NewService ¶
func NewService(cfg Config, probe ProbeFunc, dispatch DispatchFunc, stateMgr *appstate.Manager) *Service
NewService creates a heartbeat service.
func (*Service) RunOnce ¶
RunOnce runs a single heartbeat probe and dispatches the result to the latest active session.
func (*Service) TrackActivity ¶
TrackActivity marks a channel/chat as the newest active session for heartbeat delivery.
Click to show internal directories.
Click to hide internal directories.