|
|
@ -19,6 +19,7 @@ func NewManager(max int) Manager {
|
|
|
|
|
|
|
|
|
|
|
|
type ControllerManager struct {
|
|
|
|
type ControllerManager struct {
|
|
|
|
Manager
|
|
|
|
Manager
|
|
|
|
|
|
|
|
Name string
|
|
|
|
|
|
|
|
|
|
|
|
*pb.Device
|
|
|
|
*pb.Device
|
|
|
|
|
|
|
|
|
|
|
@ -31,6 +32,10 @@ func NewControllerManager(device *pb.Device) *ControllerManager {
|
|
|
|
return &ControllerManager{Manager: m, Device: device}
|
|
|
|
return &ControllerManager{Manager: m, Device: device}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (c *ControllerManager) GetName() string {
|
|
|
|
|
|
|
|
return c.Name
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (c *ControllerManager) GetDevice() *pb.Device {
|
|
|
|
func (c *ControllerManager) GetDevice() *pb.Device {
|
|
|
|
return c.Device
|
|
|
|
return c.Device
|
|
|
|
}
|
|
|
|
}
|
|
|
|