Versions in this module Expand all Collapse all v1 v1.9.1 Mar 9, 2022 Changes in this version + type EventMessage struct + AreaID uint64 + EventType EventType + Param map[string]interface{} + func NewEventMessage(et EventType, areaID uint64) *EventMessage + func (e *EventMessage) GetAttr() *entity.Attribute + func (e *EventMessage) GetDeviceID() int + func (e *EventMessage) SetAttr(attr entity.Attribute) + func (e *EventMessage) SetDeviceID(deviceID int) + type EventType string + const AttributeChange + const DeviceDecrease + const DeviceIncrease + type HandleFunc func(em EventMessage) error + type Server struct + func GetServer() *Server + func (s *Server) Notify(em *EventMessage) + func (s *Server) RegisterHandler(eventType EventType, handlerFunctions ...HandleFunc)