config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

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

设备状态

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

传输协议

Variables

This section is empty.

Functions

This section is empty.

Types

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
	Topic    string
	Qos      byte
}

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