(key string)
| 222 | } |
| 223 | |
| 224 | func (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 | |
| 234 | func (r *RPCInvocation) GetAttributeWithDefaultValue(key string, defaultValue any) any { |
| 235 | r.lock.RLock() |
no outgoing calls