Categorygithub.com/beetu2023/BaseImServerProto
modulepackage
0.0.1
Repository: https://github.com/beetu2023/baseimserverproto.git
Documentation: pkg.go.dev

# README

BaseImServerProto

BaseImServerProto

# Functions

FramerFromUint8 FramerFromUint8.
New 创建wukong协议对象.
NewDecoder NewDecoder.
NewEncoder NewEncoder.
ToFixHeaderUint8 ToFixHeaderUint8.
WriteBinary WriteBinary.
WriteInt16 WriteInt16.
WriteUint32 WriteUint32.

# Constants

No description provided by the author
APP APP.
channelType的大小.
社区频道.
社区话题频道.
客服频道.
数据频道.
群组频道.
资讯频道(有临时订阅者的概念,查看资讯的时候加入临时订阅,退出资讯的时候退出临时订阅).
ChannelTypePerson 个人频道.
clientSeq的大小.
No description provided by the author
服务端收到连接请求后确认的报文(s2c).
客户端请求连接到服务器(c2s).
No description provided by the author
DeviceLevelMaster 主设备.
DeviceLevelSlave 从设备.
请求断开连接.
No description provided by the author
LatestVersion 最新版本.
MaxRemaingLength 最大剩余长度 // 1<<28 - 1.
No description provided by the author
No description provided by the author
PC PC.
ping请求.
对ping请求的相应.
ReasonAuthFail 认证失败.
频道被封禁.
错误的频道ID.
ReasonChannelNotExist 频道不存在.
clientKey 是空的.
No description provided by the author
ReasonConnectKick 连接被踢.
ReasonForwardSendPacketError 转发发送包失败.
ReasonInBlacklist 在黑名单列表里.
ReasonMsgKeyError 消息key错误 说明消息不合法.
ReasonNodeMatchError 节点匹配错误.
ReasonNodeNotMatch 节点不匹配.
ReasonNotAllowSend 不允许发送消息.
ReasonNotInWhitelist 没在白名单内.
不支持的频道类型.
不支持的header.
ReasonPayloadDecodeError payload解码失败.
查询用户token错误.
速率限制.
ReasonSenderOffline // 发送者离线了,这条消息将发不成功.
ReasonSubscriberNotExist 订阅者在频道内不存在.
ReasonSuccess 成功.
系统错误.
ReasonUnknown 未知错误.
ReasonUserNotOnNode 用户没在节点上.
收取消息(s2c).
收取消息确认(c2s).
发送消息(c2s).
收到消息确认的报文(s2c).
setting固定大小.
是否不加密.
是否开启回执.
是否开启signal加密.
是否开启流.
是否有topic.
No description provided by the author
No description provided by the author
结束.
进行中.
开始.
No description provided by the author
字符串可变大小.
订阅.
订阅确认.
订阅.
SYSTEM 系统.
No description provided by the author
No description provided by the author
保留位.
取消订阅.
version的大小.
WEB WEB.

# Structs

No description provided by the author
ConnackPacket 连接回执包.
ConnectPacket 连接包.
Decoder 解码.
DisconnectPacket 断开连接数据包.
Encoder 编码者.
Framer 包的基础framer.
PingPacket ping包.
PongPacket pong包对ping的回应.
RecvackPacket 对收取包回执.
RecvPacket 收到消息的包.
SendackPacket 发送回执包.
SendPacket 发送包.
No description provided by the author
No description provided by the author
WKroto 悟空IM协议对象.

# Interfaces

Frame 接口.
Protocol Protocol.

# Type aliases

No description provided by the author
DeviceFlag 设备类型.
DeviceLevel 设备等级.
func SettingFromUint8(v uint8) Setting { s := Setting{} s.Receipt = (v >> 7 & 0x01) > 0 return s } FrameType 包类型.
PacketDecodeFunc 包解码函数.
PacketEncodeFunc 包编码函数.
ReasonCode 原因码.
No description provided by the author
No description provided by the author