config

package
v0.0.0-...-be47155 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EqStatusNor       = iota // 正常
	EqStatusAck              // 应答
	EqStatusGet              // 查询
	EqStatusOperate          // 设备操作
	EqStatusOnline           // 上线
	EqStatusOffline          // 下线
	EqStatusAbnormal         // 异常
	EqStatusAlarm            // 告警
	EqStatusCmd              // 下发指令
	EqStatusRecovery         // 状态恢复
	EqStatusNotActive = 50   // 未激活
	EqStatusDelete    = 51   // 删除
	EqStatusEmpty     = 98   // 空/无需操作
	EqStatusUnknown   = 99   // 未知
)

设备状态

View Source
const (
	ProtocolUnknown = iota // 未知
	ProtocolHTTP
	ProtocolCoAP
	ProtocolMQTT
	ProtocolDDS
	ProtocolAMQP
	ProtocolXMPP
	ProtocolJMS
	ProtocolTCP
	ProtocolUDP
)

传输协议

View Source
const (
	EsGetUnknown = iota
	EsGetTable
	EsGetEnable
	EsGetThreshold
)

查询子集协议

Variables

This section is empty.

Functions

This section is empty.

Types

type AepConf

type AepConf struct {
	AppKey    string
	AppSecret string
	ProductId int64
	MasterKey string
}

type AliSMSConf

type AliSMSConf struct {
	AccessKeyId       string
	AccessSecret      string
	RegionId          string
	Product           string
	Version           string
	SignName          string
	TemplateCode      string
	AlarmSignName     string
	AlarmTemplateCode string
	Expire            int64
	Tts               []string
}

type EmqxConf

type EmqxConf struct {
	Url  string
	User string
	Pass string
}

type InfluxdbConf

type InfluxdbConf struct {
	Addr      string
	Username  string
	Password  string
	Database  string
	Precision string
	Prefix    string
}

type MqttConf

type MqttConf struct {
	Broker   string
	Username string
	Password string
	Topics   []string
	Qos      byte
}

type OneNetConf

type OneNetConf struct {
	Key string
}

type RabbitMqConf

type RabbitMqConf struct {
	Mqurl     string
	QueueName string
	Exchange  string
	Key       string
}

type RedisConf

type RedisConf struct {
	Addr     string
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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