package
0.0.408
Repository: https://github.com/juetun/base-wrapper.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
NewMessageService 初始化服务 NewMessageService([]MessageServiceOption{ MessageServiceContext(), MessageServiceMysql(), }...).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

ClientConnectMax 最大的socket连接数(当前服务器连接数小于此值时,性能较优).
No description provided by the author
No description provided by the author
HeartBeatMaxRetryCount 心跳最大重试次数.
HeartBeatPeriod 心跳间隔.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MessageReqAllDeleted 全部删除.
MessageReqAllRead 全部已读.
MessageReqBatchDeleted 批量删除.
MessageReqBatchRead 批量已读.
MessageReqBreak 连接关闭.
MessageReqHeartBeat 消息请求类型 第1个数字: 1请求, 2响应 第2个数字: 消息种类(请求和响应的消息种类没有直接联系) 第3个数字: 种类排序 心跳消息.
MessageReqPush 推送新消息.
MessageRespHeartBeat 消息响应类型(首字符为2) 心跳消息.
MessageRespNormal 普通消息.
MessageRespOnline 用户上线.
MessageRespUnRead 未读数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
MessageClient 消息客户端.
MessageHub 消息仓库, 用于维护整个消息中心连接.
MessageService 所有的查询可以走redis, 但数据的更新还是走mysql.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WebSocketAnvil websocket操作基本结构体.
WebsocketBaseHandler 公共操作父结构体.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author