Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlatform ¶
RegisterPlatform is called whenever a new platform is instantiated
func ShutdownAllPlatforms ¶
func ShutdownAllPlatforms()
ShutdownAllPlatforms is called at process stop to shutdown all platforms
func StartupAllPlatforms ¶
StartupAllPlatforms is called at process start to initialize all platforms
Types ¶
type Control ¶
type Control interface { Startup(*config.Config) Control Background() Shutdown() Control AddAccessory(*accessory.TFAccessory) GetAccessory(string) (*accessory.TFAccessory, bool) }
Control is the interface which all platforms must satisfy
func GetPlatform ¶
GetPlatform looks up a registered platform by name
Click to show internal directories.
Click to hide internal directories.