Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor handles the execution of the ping command
func NewExecutor ¶
NewExecutor creates a new ping command executor
type PingResponse ¶
type PingResponse struct {
Message string `json:"message"`
Color string `json:"color"`
Timestamp string `json:"timestamp"`
}
PingResponse represents the structured data returned by the command This demonstrates the "Shadow Log" pattern: this struct is logged to the file while the user sees a formatted message.
Click to show internal directories.
Click to hide internal directories.