package
1.2.2
Repository: https://github.com/osgochina/dmicro.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package message 消息对象.
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

# Functions

No description provided by the author
DefaultBodyCodec 获取当前默认消息体编码格式.
GetLogger 获取drpc组件使用的logger对象.
HTTPServiceMethodMapper service method名称的映射规则,使用"/"做分隔符 默认的映射规则 生成的serviceMethod类似于:/pay/alipay/app struct或者func的名字转换成service methods的规则如下: `AaBb` -> `/aa_bb` `ABcXYz` -> `/abc_xyz` `Aa__Bb` -> `/aa_bb` `aa__bb` -> `/aa_bb` `ABC__XYZ` -> `/abc_xyz` `Aa_Bb` -> `/aa/bb` `aa_bb` -> `/aa/bb` `ABC_XYZ` -> `/abc/xyz` .
IsConnError 判断是否是链接出错.
NewDialer 创建一个拨号器.
No description provided by the author
NewFakeCallCmd 构建伪造的回调命令.
NewInheritedListener 创建一个支持优雅重启,支持继承监听的监听器.
NewStatusByCodeText 通过错误码生成错误信息.
RPCServiceMethodMapper service method名称的映射规则,使用"."做分隔符 生成的serviceMethod类似于:pay.alipay.app struct或者func的名字转换成service methods的规则如下: `AaBb` -> `AaBb` `ABcXYz` -> `ABcXYz` `Aa__Bb` -> `Aa_Bb` `aa__bb` -> `aa_bb` `ABC__XYZ` -> `ABC_XYZ` `Aa_Bb` -> `Aa.Bb` `aa_bb` -> `aa.bb` `ABC_XYZ` -> `ABC.XYZ`.
SetDefaultBodyCodec 设置默认消息体编码格式.
SetLogger 使用自定义的log.
SetServiceMethodMapper 设置路由路径的生成函数.
WithAcceptBodyCodec sets the body codec that the sender wishes to accept.
No description provided by the author

# Constants

框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
nil error (ok).
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
nil error (ok).
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.
框架保留 Status code建议自定义代码大于1000 未知错误:-1 发送错误: 100-199 消息处理错误: 400-499 接收错误: 500-599.

# Variables

DefaultProtoFunc 默认传输协议.
No description provided by the author
No description provided by the author
No description provided by the author
GetReadLimit 获取消息最大长度限制.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetDefaultProtoFunc 设置默认传输协议.
SetReadLimit 设置消息最大长度限制.
SetSocketKeepAlive 开启关闭死链检测.
SetSocketKeepAlivePeriod 死链检测间隔时间.
SetSocketNoDelay 开启关闭no delay算法.
SetSocketReadBuffer 设置链接读缓冲区长度.
SetSocketWriteBuffer 设置链接写缓冲区长度.
SocketReadBuffer 获取链接读缓冲区长度.
SocketWriteBuffer 获取链接写缓冲区长度.
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
WithBody sets the body object.
WithBodyCodec sets the body codec.
WithContext sets the message handling context.
WithDelMeta deletes metadata argument.
WithNewBody resets the function of geting body.
WithNothing nothing to do.
WithServiceMethod sets the message service method.
WithSetMeta sets 'key=value' metadata argument.
No description provided by the author
WithStatus sets the message status.
WithTFilterPipe 设置传输过滤器.

# Structs

Dialer 拨号器.
EndpointConfig 端点的配置.
No description provided by the author
PluginContainer 插件容器.
Router 路由器.
No description provided by the author
SubRouter 组路由器.

# Interfaces

AfterAcceptPlugin 作为服务端,接收到客户端的链接后触发该事件.
AfterCloseEndpointPlugin 关闭Endpoint之后触发该事件.
AfterDialFailPlugin 作为客户端链接到服务端失败以后触发该事件.
AfterDialPlugin 作为客户端链接到服务端成功以后触发该事件.
AfterDisconnectPlugin 断开会话以后触发该事件.
AfterListenPlugin 服务端监听以后触发该事件.
AfterNewEndpointPlugin 创建Endpoint之后触发该事件.
AfterReadCallBodyPlugin 读取CALL消息的body之后触发该事件.
AfterReadCallHeaderPlugin 读取CALL消息的Header之后触发该事件.
AfterReadPushBodyPlugin 读取PUSH消息body之后触发该事件.
AfterReadPushHeaderPlugin 读取PUSH消息Header之后触发该事件.
AfterReadReplyBodyPlugin 读取REPLY消息body之后触发该事件.
AfterReadReplyHeaderPlugin 读取REPLY消息Header之前触发该事件.
AfterRegRouterPlugin 路由注册成功触发该事件.
AfterWriteCallPlugin 写入CALL消息成功之后触发该事件.
AfterWritePushPlugin 写入PUSH消息成功之后触发该事件.
AfterWriteReplyPlugin 写入Reply消息成功之后触发该事件.
No description provided by the author
BaseSession 基础的session.
BeforeCloseEndpointPlugin 关闭Endpoint之前触发该事件.
BeforeDialPlugin 作为客户端链接到服务端之前调用该事件.
BeforeNewEndpointPlugin 创建Endpoint之前触发该事件.
BeforeReadCallBodyPlugin 读取CALL消息的body之前触发该事件.
BeforeReadHeaderPlugin 执行读取Header之前触发该事件.
BeforeReadPushBodyPlugin 读取PUSH消息body之前触发该事件.
BeforeReadReplyBodyPlugin 读取REPLY消息body之前触发该事件.
BeforeWriteCallPlugin 写入CALL消息之前触发该事件.
BeforeWritePushPlugin 写入PUSH消息之前触发该事件.
BeforeWriteReplyPlugin 写入Reply消息之前触发该事件.
CallCmd CALL 命令调用后,响应操作的命令.
CallCtx call消息使用的上下文.
CtxSession 在处理程序上下文中传递的会话对象.
EarlyCtx 基础上下文.
No description provided by the author
EarlySession 尚未启动 goroutine 读取数据的链接会话.
No description provided by the author
Plugin 插件的基础对象.
PushCtx push消息使用的上下文.
ReadCtx 读取消息使用的上下文.
No description provided by the author
UnknownCallCtx 未知call消息的上下文.
UnknownPushCtx 未知push消息的上下文.
WriteCtx 写消息时使用的上下文方法.

# Type aliases

ServiceMethodMapper ServiceMethod的转换函数类型.
No description provided by the author