Documentation
¶
Overview ¶
Package manager 实现 session manager 所需要的公共方法。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CanNotIdentifyErrSet = map[int]bool{ errs.CodeConnCloseCantIdentify: true, }
CanNotIdentifyErrSet 不能进行 identify 操作的错误码
View Source
var CanNotResumeErrSet = map[int]bool{ errs.CodeConnCloseCantResume: true, }
CanNotResumeErrSet 不能进行 resume 操作的错误码
Functions ¶
func CalcInterval ¶
CalcInterval 根据并发要求,计算连接启动间隔
func CheckSessionLimit ¶
func CheckSessionLimit(apInfo *dto.WebsocketAP) error
CheckSessionLimit 检查链接数是否达到限制,如果达到限制需要等待重置
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.