blob: 3a9e1b297ad96aa943eaf25726e0be588a099cdb [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)
}