blob: 5050834c24f45ffba79ec9cd08c8395f68466b2a [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)
}