We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在Server Plugin中,预定义了很多Plugin
type ( // RegisterPlugin is . RegisterPlugin interface { Register(name string, rcvr interface{}, metadata string) error Unregister(name string) error } // RegisterFunctionPlugin is . RegisterFunctionPlugin interface { RegisterFunction(serviceName, fname string, fn interface{}, metadata string) error } // PostConnAcceptPlugin represents connection accept plugin. // if returns false, it means subsequent IPostConnAcceptPlugins should not continue to handle this conn // and this conn has been closed. PostConnAcceptPlugin interface { HandleConnAccept(net.Conn) (net.Conn, bool) } // PostConnClosePlugin represents client connection close plugin. PostConnClosePlugin interface { HandleConnClose(net.Conn) bool } // PreReadRequestPlugin represents . PreReadRequestPlugin interface { PreReadRequest(ctx context.Context) error } // PostReadRequestPlugin represents . PostReadRequestPlugin interface { PostReadRequest(ctx context.Context, r *protocol.Message, e error) error } // PreHandleRequestPlugin represents . PreHandleRequestPlugin interface { PreHandleRequest(ctx context.Context, r *protocol.Message) error } PreCallPlugin interface { PreCall(ctx context.Context, serviceName, methodName string, args interface{}) (interface{}, error) } PostCallPlugin interface { PostCall(ctx context.Context, serviceName, methodName string, args, reply interface{}) (interface{}, error) } // PreWriteResponsePlugin represents . PreWriteResponsePlugin interface { PreWriteResponse(context.Context, *protocol.Message, *protocol.Message, error) error } // PostWriteResponsePlugin represents . PostWriteResponsePlugin interface { PostWriteResponse(context.Context, *protocol.Message, *protocol.Message, error) error } // PreWriteRequestPlugin represents . PreWriteRequestPlugin interface { PreWriteRequest(ctx context.Context) error } // PostWriteRequestPlugin represents . PostWriteRequestPlugin interface { PostWriteRequest(ctx context.Context, r *protocol.Message, e error) error } // HeartbeatPlugin is . HeartbeatPlugin interface { HeartbeatRequest(ctx context.Context, req *protocol.Message) error } CMuxPlugin interface { MuxMatch(m cmux.CMux) } )
能够麻烦一下,将每一种plugin的执行顺序和含义,参数含义,返回值含义都解释一下吗? 在原始文档中,这一部分没有写。
谢谢
The text was updated successfully, but these errors were encountered:
重写日志: https://github.com/smallnest/rpcx/blob/master/log/logger.go#L34
插件的文档需要加强。
Sorry, something went wrong.
No branches or pull requests
在Server Plugin中,预定义了很多Plugin
能够麻烦一下,将每一种plugin的执行顺序和含义,参数含义,返回值含义都解释一下吗?
在原始文档中,这一部分没有写。
谢谢
The text was updated successfully, but these errors were encountered: