Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOp ¶
func GetOp() ops.RegisterableOp
Types ¶
type SleepConfig ¶
type SleepConfig struct {
// Optional: default duration if not specified in input
DefaultDuration string `json:"default_duration"`
}
SleepConfig defines the configuration for sleep activities - ALL fields MUST have json tags
type SleepInput ¶
type SleepInput struct {
Duration string `json:"duration" validate:"required"` // Required: duration to sleep (e.g., "5s", "1m", "500ms")
}
SleepInput defines the input for sleep activities - ALL fields MUST have json tags
type SleepOutput ¶
type SleepOutput struct {
StartTime time.Time `json:"start_time"` // When the sleep started
EndTime time.Time `json:"end_time"` // When the sleep ended
ActualDuration string `json:"actual_duration"` // Actual duration slept
Completed bool `json:"completed"` // Whether sleep completed normally
Interrupted bool `json:"interrupted"` // Whether sleep was interrupted
ErrorMessage string `json:"error_message"` // Error message if interrupted
}
SleepOutput defines the output from sleep activities - ALL fields MUST have json tags
Click to show internal directories.
Click to hide internal directories.