Documentation ¶
Index ¶
Constants ¶
View Source
const ALARM_EMERGENCY_STOP = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveList ¶
type ActiveList struct { Items map[string]Message `json:"items"` Id int `json:"id"` // contains filtered or unexported fields }
func NewActiveList ¶
func NewActiveList(kv Persistent) *ActiveList
func (*ActiveList) CheckIfExists ¶
func (c *ActiveList) CheckIfExists(m Message) (Message, int, bool)
returns Uid or -1
func (*ActiveList) Save ¶
func (c *ActiveList) Save()
func (*ActiveList) Update ¶
func (c *ActiveList) Update(m Message) Message
type Alarm ¶
type Alarm struct {
// contains filtered or unexported fields
}
func (*Alarm) MQTT_ConnectHandler ¶
func (a *Alarm) MQTT_ConnectHandler()
type Message ¶
type Message struct { Id int `json:"ID"` Value int `json:"Value"` Message string `json:"Message"` TimeEvent *TimeStruct `json:"TimeEvent,omitempty"` TimeAck *TimeStruct `json:"TimeAck,omitempty"` UId int `json:"uid"` LineId string `json:"line_id"` ModuleId string `json:"module_id"` Resolved bool `json:"resolved,omitempty"` }
type Persistent ¶
type TimeStruct ¶
Click to show internal directories.
Click to hide internal directories.