You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
354 B
Go
23 lines
354 B
Go
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
|
|
}
|