heartbeat

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatHandler

type HeartbeatHandler func(prompt, channel, chatID string) *tools.ToolResult

HeartbeatHandler is the function type for handling heartbeat. It returns a ToolResult that can indicate async operations. channel and chatID are derived from the last active user channel.

type HeartbeatService

type HeartbeatService struct {
	// contains filtered or unexported fields
}

HeartbeatService manages periodic heartbeat checks

func NewHeartbeatService

func NewHeartbeatService(workspace string, intervalMinutes int, enabled bool) *HeartbeatService

NewHeartbeatService creates a new heartbeat service

func (*HeartbeatService) IsRunning

func (hs *HeartbeatService) IsRunning() bool

IsRunning returns whether the service is running

func (*HeartbeatService) SetBus

func (hs *HeartbeatService) SetBus(msgBus *bus.MessageBus)

SetBus sets the message bus for delivering heartbeat results.

func (*HeartbeatService) SetHandler

func (hs *HeartbeatService) SetHandler(handler HeartbeatHandler)

SetHandler sets the heartbeat handler.

func (*HeartbeatService) Start

func (hs *HeartbeatService) Start() error

Start begins the heartbeat service

func (*HeartbeatService) Stop

func (hs *HeartbeatService) Stop()

Stop gracefully stops the heartbeat service

Jump to

Keyboard shortcuts

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