package device import ( "sync" ) // base controller manager type ControllerManager struct { *DeviceManager sync.Mutex Enabled bool // turn controller on or off } func NewControllerManager() *ControllerManager { return &ControllerManager{} } func (c *ControllerManager) SetDeviceManager(d *DeviceManager) { c.DeviceManager = d }