GetAttachmentInterface returns the corresponding value from dubbo's attachment with the given key.
(key string)
| 139 | |
| 140 | // GetAttachmentInterface returns the corresponding value from dubbo's attachment with the given key. |
| 141 | func (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. |
| 151 | func (r *RPCInvocation) Attributes() map[string]any { |
nothing calls this directly
no outgoing calls
no test coverage detected