blob: d7ad29b2845c3f1532627d860dfe7b61ff5ac2af [file] [log] [blame]
// 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
}