Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instruction ¶
Instruction defines a generic interface for representing device instructions. Specific types of instructions simply need to satisfy this interface.
type VibrateInstruction ¶
type VibrateInstruction struct{}
VibrateInstruction will instruct a device to turn its vibration function on/off we assume the actual device keeps track of its own state, so "vibrate vibrate vibrate" will turn the device on/off/on
func (VibrateInstruction) HasPayload ¶
func (v VibrateInstruction) HasPayload() bool
HasPayload returns false; we don't have payloads for this instruction type
func (VibrateInstruction) Payload ¶
func (v VibrateInstruction) Payload() interface{}
Payload returns nil for this instruction
func (VibrateInstruction) Type ¶
func (v VibrateInstruction) Type() string
Type returns the capability type
Click to show internal directories.
Click to hide internal directories.