blob: 128af61ba88392c2236ea2173a9dfed75b596f19 [file] [log] [blame]
package sample
// Sprinkler allows clients to control the virtual sprinkler.
type Sprinkler interface {
// Status retrieves the Sprinkler's status (i.e., active, idle)
Status() (string | error)
// Start causes the Sprinkler to emit water for the given duration (in seconds).
Start(duration uint16) error
// Stop causes the Sprinkler to cease watering.
Stop() error
}