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

Method GetAttachmentInterface

protocol/invocation/rpcinvocation.go:141–148  ·  view source on GitHub ↗

GetAttachmentInterface returns the corresponding value from dubbo's attachment with the given key.

(key string)

Source from the content-addressed store, hash-verified

139
140// GetAttachmentInterface returns the corresponding value from dubbo's attachment with the given key.
141func (r *RPCInvocation) GetAttachmentInterface(key string) any {
142 r.lock.RLock()
143 defer r.lock.RUnlock()
144 if r.attachments == nil {
145 return nil
146 }
147 return r.attachments[key]
148}
149
150// Attributes gets all attributes of RPC.
151func (r *RPCInvocation) Attributes() map[string]any {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected