forked from dyrkin/zigbee-steward
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchannels.go
More file actions
26 lines (20 loc) · 693 Bytes
/
channels.go
File metadata and controls
26 lines (20 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package steward
import "github.com/bitver/zigbee-steward/model"
type Channels struct {
onDeviceRegistered chan *model.Device
onDeviceUnregistered chan *model.Device
onDeviceBecameAvailable chan *model.Device
onDeviceIncomingMessage chan *model.DeviceIncomingMessage
}
func (c *Channels) OnDeviceRegistered() chan *model.Device {
return c.onDeviceRegistered
}
func (c *Channels) OnDeviceBecameAvailable() chan *model.Device {
return c.onDeviceBecameAvailable
}
func (c *Channels) OnDeviceUnregistered() chan *model.Device {
return c.onDeviceUnregistered
}
func (c *Channels) OnDeviceIncomingMessage() chan *model.DeviceIncomingMessage {
return c.onDeviceIncomingMessage
}