MCPcopy Create free account
hub / github.com/apache/dubbo-go / ActualMethodName

Method ActualMethodName

protocol/invocation/rpcinvocation.go:85–91  ·  view source on GitHub ↗

ActualMethodName gets actual invocation method name. It returns the method name been called if it's a generic call

()

Source from the content-addressed store, hash-verified

83
84// ActualMethodName gets actual invocation method name. It returns the method name been called if it's a generic call
85func (r *RPCInvocation) ActualMethodName() string {
86 if r.IsGenericInvocation() {
87 return r.Arguments()[0].(string)
88 } else {
89 return r.MethodName()
90 }
91}
92
93// IsGenericInvocation gets if this is a generic invocation
94func (r *RPCInvocation) IsGenericInvocation() bool {

Callers

nothing calls this directly

Calls 3

IsGenericInvocationMethod · 0.95
ArgumentsMethod · 0.95
MethodNameMethod · 0.95

Tested by

no test coverage detected