deviceStatus

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	ConnectStatus    = "connected"
	DisConnectStatus = "disconnected"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectMsg

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

连接和断连消息信息

func GetDevConnMsg

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

Jump to

Keyboard shortcuts

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