blob: 9864f5348a391f51e2914feaf47b026165b0517a [file] [log] [blame]
package sample
// LightSwitch allows clients to manipulate a virtual light switch.
type LightSwitch interface {
// Status indicates whether the light is on or off.
Status() (string | error)
// FlipSwitch sets the light to on or off, depending on the input.
FlipSwitch(toOn bool) error
}