Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Type CommandType
Target string // Agent name for individual commands, empty for all commands
}
Command represents a parsed control command
type CommandType ¶
type CommandType int
CommandType represents the type of control command
const ( // CommandUnknown represents an unrecognized command CommandUnknown CommandType = iota // CommandStop represents a stop command CommandStop // CommandResume represents a resume command CommandResume // CommandStopAll represents a stop all command CommandStopAll // CommandResumeAll represents a resume all command CommandResumeAll )
func (CommandType) String ¶
func (c CommandType) String() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles control commands
func NewHandler ¶
NewHandler creates a new control command handler
func (*Handler) Handle ¶
Handle parses and executes a control command Returns nil if the input is not a control command
func (*Handler) IsControlCommand ¶
IsControlCommand checks if the input is a control command
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses control commands from input text
func (*Parser) IsControlCommand ¶
IsControlCommand returns true if the input is a control command
Click to show internal directories.
Click to hide internal directories.