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