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
2 years ago
|
package device
|
||
|
|
||
|
import (
|
||
|
"sync"
|
||
|
)
|
||
|
|
||
|
// base controller manager
|
||
|
|
||
|
type ControllerManager struct {
|
||
|
*DeviceManager
|
||
|
|
||
|
sync.Mutex
|
||
|
Enabled bool // turn controller on or off
|
||
|
}
|
||
|
|
||
2 years ago
|
func NewControllerManager() (*ControllerManager, error) {
|
||
|
return &ControllerManager{}, nil
|
||
2 years ago
|
}
|
||
|
|
||
|
func (c *ControllerManager) SetDeviceManager(d *DeviceManager) {
|
||
|
c.DeviceManager = d
|
||
|
}
|