event

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//设备在离线状态事件
	EventCodeDeviceStatus = "deviceStatus"
	//driver-box服务状态
	EventCodeServiceStatus = "serviceStatus"
	//添加设备
	EventCodeAddDevice = "addDevice"
	//即将执行ExportTo
	EventCodeWillExportTo = "willExportTo"
	//设备自动发现事件
	EventDeviceDiscover = "deviceDiscover"

	EventCodeLinkEdgeTrigger = "linkEdgeTrigger"
)
View Source
const (
	// UnknownDevice 未知设备
	UnknownDevice = "unknownDevice"
	// UnknownLinkEdge 未知场景
	UnknownLinkEdge = "unknownLinkEdge"
)

场景相关事件

View Source
const (
	//服务启动成功
	ServiceStatusHealthy = "healthy"
	//服务启动异常
	ServiceStatusError = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data added in v0.8.0

type Data struct {
	Code  string      `json:"code"` //事件Code
	Value interface{} `json:"value"`
}

Data 设备事件模型

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL