deviceStatus

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package device 设备发送来的消息解析

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectMsg

type ConnectMsg struct {
	ClientID  string
	Device    devices.Core
	Username  string
	Timestamp time.Time
	Address   string
	Action    devices.Action
	Reason    string
}

连接和断连消息信息

func GetDevConnMsg

func GetDevConnMsg(ctx context.Context, data []byte) (*ConnectMsg, error)

type DisconnectCheck

type DisconnectCheck struct {
	ClientID       string
	Device         devices.Core
	DisconnectTime time.Time
}

Jump to

Keyboard shortcuts

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