heartbeat

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatHandler added in v0.1.2

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 added in v0.1.2

func (hs *HeartbeatService) IsRunning() bool

IsRunning returns whether the service is running

func (*HeartbeatService) SetBus added in v0.1.2

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

SetBus sets the message bus for delivering heartbeat results.

func (*HeartbeatService) SetHandler added in v0.1.2

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