UserUserMQTT

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKey

func CheckKey(topic string, keys CheckType) (b bool)

CheckKey 检查用户合法性

Types

type CheckType

type CheckType struct {
	//用户ID
	UserID int64 `json:"userID"`
	//token
	Token int64 `json:"token"`
	//随机字符
	Nonce string `json:"nonce"`
	//计算密钥结果
	// sha1(MQTT主题地址+用户ID+token+nonce)
	Key string `json:"key"`
}

CheckType 检查数据聚合

Jump to

Keyboard shortcuts

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