event

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// device online
	ONLINE = "online"
	// device offline
	OFFLINE = "offline"
	// update device name
	NAME_UPDATE = "nameUpdate"
	// modify device function name
	DP_NAME_UPDATE = "dpNameUpdate"
	// unbind device
	DELETE = "delete"
	// bind device
	BIND_USER = "bindUser"
	// device upgrade status
	UPGRADE_STATUS = "upgradeStatus"
	// device share
	SHARE = "share"
	// device signal
	DEVICE_SIGNAL = "deviceSignal"
	// user register
	USER_REGISTER = "userRegister"
	// user data update
	USER_UPDATE = "userUpdate"
	// user logout
	USER_DELETE = "userDelete"
	// create home
	HOME_CREATE = "homeCreate"
	// update home
	HOME_UPDATE = "homeUpdate"
	// delete home
	HOME_DELETE = "homeDelete"
	// create room
	ROOM_CREATE = "roomCreate"
	// delete room
	ROOM_DELETE = "roomDelete"
	// update room name
	ROOM_NAME_UPDATE = "roomNameUpdate"
	// room sort
	ROOM_SORT = "roomSort"
	// device control command
	DEVICE_DP_COMMAND = "deviceDpCommand"
	// report device status data
	STATUS_REPORT              = "statusReport"
	AUTOMATION_EXTERNAL_ACTION = "automationExternalAction"
	SCENE_EXECUTE              = "sceneExecute"
)
View Source
const (
	ONLINE_MESSAGE                     = "OnlineMessage"
	OFFLINE_MESSAGE                    = "OfflineMessage"
	NAME_UPDATE_MESSAGE                = "NameUpdateMessage"
	DP_NAME_UPDATE_MESSAGE             = "DpNameUpdateMessage"
	DELETE_MESSAGE                     = "DeleteMessage"
	BIND_USER_MESSAGE                  = "BindUserMessage"
	UPGRADE_STATUS_MESSAGE             = "UpgradeStatusMessage"
	SHARE_MESSAGE                      = "ShareMessage"
	DEVICE_SIGNAL_MESSAGE              = "DeviceSignalMessage"
	USER_REGISTER_MESSAGE              = "UserRegisterMessage"
	USER_UPDATE_MESSAGE                = "UserUpdateMessage"
	USER_DELETE_MESSAGE                = "UserDeleteMessage"
	HOME_CREATE_MESSAGE                = "HomeCreateMessage"
	HOME_UPDATE_MESSAGE                = "HomeUpdateMessage"
	HOME_DELETE_MESSAGE                = "HomeDeleteMessage"
	ROOM_CREATE_MESSAGE                = "RoomCreateMessage"
	ROOM_DELETE_MESSAGE                = "RoomDeleteMessage"
	ROOM_NAME_UPDATE_MESSAGE           = "RoomNameUpdateMessage"
	ROOM_SORT_MESSAGE                  = "RoomSortMessage"
	DEVICE_DP_COMMAND_MESSAGE          = "DeviceDpCommandMessage"
	STATUS_REPORT_MESSAGE              = "StatusReportMessage"
	AUTOMATION_EXTERNAL_ACTION_MESSAGE = "AutomationExternalActionMessage"
	SCENE_EXECUTE_MESSAGE              = "SceneExecuteMessage"
)
View Source
const (
	PROTOCOL_STATUS = 4
	PROTOCOL_DEVICE = 20
)

Variables

This section is empty.

Functions

func GetMessageNameByType

func GetMessageNameByType(v string) string

Types

type AutomationExternalActionMessage

type AutomationExternalActionMessage struct {
	AutomationId string `json:"automationId"`
	// contains filtered or unexported fields
}

type BindUserMessage

type BindUserMessage struct {
	// contains filtered or unexported fields
}

type DeleteMessage

type DeleteMessage struct {
	// contains filtered or unexported fields
}

type DeviceDpCommandMessage

type DeviceDpCommandMessage struct {
	Command []commandItem `json:"command"`
	// contains filtered or unexported fields
}

type DeviceSignalMessage

type DeviceSignalMessage struct {
	ReportData []deviceSignalItem `json:"reportData"`
	// contains filtered or unexported fields
}

type DpNameUpdateMessage

type DpNameUpdateMessage struct {
	// contains filtered or unexported fields
}

type HomeCreateMessage

type HomeCreateMessage struct {
	// contains filtered or unexported fields
}

type HomeDeleteMessage

type HomeDeleteMessage struct {
	// contains filtered or unexported fields
}

type HomeUpdateMessage

type HomeUpdateMessage struct {
	// contains filtered or unexported fields
}

type NameUpdateMessage

type NameUpdateMessage struct {
	// contains filtered or unexported fields
}

type OfflineMessage

type OfflineMessage struct {
	// contains filtered or unexported fields
}

type OnlineMessage

type OnlineMessage struct {
	// contains filtered or unexported fields
}

type RoomCreateMessage

type RoomCreateMessage struct {
	// contains filtered or unexported fields
}

type RoomDeleteMessage

type RoomDeleteMessage struct {
	// contains filtered or unexported fields
}

type RoomNameUodateMessage

type RoomNameUodateMessage struct {
	// contains filtered or unexported fields
}

type RoomSortMessage

type RoomSortMessage struct {
	// contains filtered or unexported fields
}

type SceneExecuteMessage

type SceneExecuteMessage struct {
	Gid     int64              `json:"gid"`
	Uid     string             `json:"uid"`
	Actions []sceneExecuteItem `json:"actions"`
	// contains filtered or unexported fields
}

type ShareMessage

type ShareMessage struct {
	// contains filtered or unexported fields
}

type StatusReportMessage

type StatusReportMessage struct {
	DataId string             `json:"dataId"`
	Status []statusReportItem `json:"status"`
	// contains filtered or unexported fields
}

type UpgradeStatusMessage

type UpgradeStatusMessage struct {
	// contains filtered or unexported fields
}

type UserDeleteMessage

type UserDeleteMessage struct {
	// contains filtered or unexported fields
}

type UserRegisterMessage

type UserRegisterMessage struct {
	// contains filtered or unexported fields
}

type UserUpdateMessage

type UserUpdateMessage struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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