聊聊dubbo-go的RPCInvocation
序 本文主要研究一下dubbo-go的RPCInvocation Invocation dubbo-go-v1.4.2/protocol/invocation.go // Invocation ... type Invocation interface { MethodName() string ParameterTypes() []reflect.Type ParameterValues() []reflect.Value Arguments() []interface{} Reply() interface{} Attachments() map[string]string AttachmentsByKey(string, string) string Invoker() Invoker } Invocation定义了MethodName、ParameterTypes、ParameterValues、Arguments、Reply、Attachments、AttachmentsByKey、Invoker方法 RPCInvocation dubbo-go-v1.4.2/protocol/invocation/rpcinvocation.go type RPCInvocation struct { methodName string parameterTypes []reflect