Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CertFileName = "./mqttdebug.crt"
View Source
var ConnectTimeout = 10 * int64(time.Second)
连接超时时间,秒
View Source
var DashboardUpdateTime = 3 * time.Second
看板的数据更新时间
View Source
var DashboordApiUrl = DashboordUrl + "/api"
View Source
var DashboordUrl = "/dashboard"
View Source
var KeyFileName = "./mqttdebug.key"
View Source
var MaxRetryTimes int = 5
重发消息的最大次数
View Source
var MaxSizeOfInflight int = 100
发送窗口的大小
View Source
var MaxSizeOfNewConnectionChan int = 10000
sessionMgr处理新连接的chan缓冲大小
View Source
var MaxSizeOfPublishMsg = 10 * 1024
每个session 最大pedding消息数
View Source
var OverviewTopic = "$sys/overview"
View Source
var PingTimeout = 30 * int64(time.Second)
发送心跳包的周期(秒)
View Source
var PingrespTimeout = 45 * int64(time.Second) //1.5 PingTimeout
客户端用户检测PINGRESP有没有超时接收
View Source
var PprofPort = 6060
pprof查看端口,url ip:port/debug/pprof
View Source
var RestfulPort = 8081
restful api port,url base: ip:port/dashboard
View Source
var RestfullApiUrl = "/api"
View Source
var SendToSelf = true
是否给支持自己给自己发消息
View Source
var SentTimeout = 5 * int64(time.Second)
消息发送超时时间
View Source
var TcpPort = 1883
View Source
var TcpTLSPort = 8883
tcp ssl 加密端口
View Source
var WSPort = 8083
websocket端口,url ip:port/mqtt
View Source
var WSSPort = 8084
websocket ssl加密商品,url ip:port/mqtts
View Source
var WebPort = 8080
web server for some html page
Functions ¶
func SessionInfoTopic ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.