Documentation
¶
Index ¶
- Constants
- type ClearCommandHandler
- type ClearExecStopper
- type ClearSessionDispatcher
- type ClearSessionStore
- type ClearTaskStore
- type EngineCommandHandler
- type EngineValidator
- type ExecutionActivityChecker
- type MessageActivityChecker
- type SystemBusyChecker
- type SystemConfigWriter
- type TaskActivityChecker
- type WorkerNameLookup
- type WorkerRepository
Constants ¶
const ( // CmdEngine is the slash command that switches engines. CmdEngine = "/engine" // CmdClear is the slash command that clears session contexts. CmdClear = "/clear" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearCommandHandler ¶
type ClearCommandHandler struct {
// contains filtered or unexported fields
}
func NewClearCommandHandler ¶
func NewClearCommandHandler( workers WorkerNameLookup, sessions ClearSessionStore, tasks ClearTaskStore, execStopper ClearExecStopper, sessionClear ClearSessionDispatcher, senders map[string]platform.PlatformSenderAdapter, engineCfg *enginecfg.Store, ) *ClearCommandHandler
func (*ClearCommandHandler) HandleCommand ¶
func (h *ClearCommandHandler) HandleCommand(ctx context.Context, content string, replyTo platform.InboundMessage) bool
func (*ClearCommandHandler) IsCommand ¶ added in v0.0.29
func (h *ClearCommandHandler) IsCommand(content string) bool
type ClearExecStopper ¶
type ClearSessionDispatcher ¶
type ClearSessionDispatcher interface {
ClearSession(sessionKey string)
}
type ClearSessionStore ¶
type ClearTaskStore ¶
type EngineCommandHandler ¶
type EngineCommandHandler struct {
// contains filtered or unexported fields
}
EngineCommandHandler handles the /engine slash command.
func NewEngineCommandHandler ¶
func NewEngineCommandHandler( workers WorkerRepository, sysCfg SystemConfigWriter, senders map[string]platform.PlatformSenderAdapter, validator EngineValidator, busy SystemBusyChecker, engineCfg *enginecfg.Store, ) *EngineCommandHandler
func (*EngineCommandHandler) HandleCommand ¶
func (h *EngineCommandHandler) HandleCommand(ctx context.Context, content string, replyTo platform.InboundMessage) bool
func (*EngineCommandHandler) IsCommand ¶ added in v0.0.29
func (h *EngineCommandHandler) IsCommand(content string) bool
type EngineValidator ¶
EngineValidator validates engine names against the set of enabled engines.
type ExecutionActivityChecker ¶
ExecutionActivityChecker reports whether active executions exist.
type MessageActivityChecker ¶
MessageActivityChecker reports whether active platform messages exist.
type SystemBusyChecker ¶
type SystemBusyChecker interface {
MessageActivityChecker
ExecutionActivityChecker
TaskActivityChecker
}
SystemBusyChecker composes the activity checks that block engine switching while the system has in-flight work.
func NewSystemBusyChecker ¶
func NewSystemBusyChecker( msg MessageActivityChecker, exec ExecutionActivityChecker, task TaskActivityChecker, ) SystemBusyChecker
type SystemConfigWriter ¶
SystemConfigWriter is the subset of SystemConfigStore needed by EngineCommandHandler.
type TaskActivityChecker ¶
TaskActivityChecker reports whether active immediate tasks exist.