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

Method GetAttribute

protocol/invocation/rpcinvocation.go:224–232  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

222}
223
224func (r *RPCInvocation) GetAttribute(key string) (any, bool) {
225 r.lock.RLock()
226 defer r.lock.RUnlock()
227 if r.attributes == nil {
228 return nil, false
229 }
230 value, ok := r.attributes[key]
231 return value, ok
232}
233
234func (r *RPCInvocation) GetAttributeWithDefaultValue(key string, defaultValue any) any {
235 r.lock.RLock()

Callers 2

TestFilterInvokeFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestFilterInvokeFunction · 0.76