(key string, value any)
| 180 | } |
| 181 | |
| 182 | func (r *RPCInvocation) SetAttachment(key string, value any) { |
| 183 | r.lock.Lock() |
| 184 | defer r.lock.Unlock() |
| 185 | if r.attachments == nil { |
| 186 | r.attachments = make(map[string]any) |
| 187 | } |
| 188 | r.attachments[key] = value |
| 189 | } |
| 190 | |
| 191 | func (r *RPCInvocation) GetAttachment(key string) (string, bool) { |
| 192 | r.lock.RLock() |