// Copyright 2015 The Vanadium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
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 | |
} |