# Functions
GetAcceptBodyCodec 获取发送方希望接受的正文编解码器。注意:如果指定的编解码器无效,接收器将忽略配对数据.
GetMessage 从对象池中获取message.
MsgSizeLimit 获取消息的最大长度.
NewMessage 创建message对象.
PutMessage 把message对象返回对象池.
SetMsgSizeLimit 设置消息的最大长度.
No description provided by the author
WithBody 设置消息体的内容.
WithBodyCodec 设置消息的消息体编码格式.
WithContext 设置消息的上下文对象.
WithDelMeta 删除消息元数据.
WithMType 设置消息类型,改方法会改变整个消息的处理逻辑,请明确知道你要做什么的时候使用.
WithNewBody 设置创建消息体的函数.
WithNothing 什么也不做.
WithServiceMethod 设置消息的服务器接口名.
WithSetMeta 添加消息的元数据.
WithSetMetas 使用数组添加元数据.
WithStatus 设置消息的状态.
WithTFilterPipe 设置消息的管道类型.
# Constants
MetaAcceptBodyCodec the key of body codec that the sender wishes to accept.
MetaRealIP real IP metadata key.
消息类型.
消息类型.
call.
消息类型.
reply to call.
未知类型.
# Variables
ErrExceedMessageSizeLimit error.
# Type aliases
No description provided by the author
NewBodyFunc 根据消息头,生成消息体,这个函数只会在读取connection上的.