Get returns the complete list of deltas for the requested item, or sets exists=false. You should treat the items returned inside the deltas as immutable.
(obj interface{})
| 367 | // or sets exists=false. |
| 368 | // You should treat the items returned inside the deltas as immutable. |
| 369 | func (f *DeltaFIFO) Get(obj interface{}) (item interface{}, exists bool, err error) { |
| 370 | key, err := f.KeyOf(obj) |
| 371 | if err != nil { |
| 372 | return nil, false, KeyError{obj, err} |
| 373 | } |
| 374 | return f.GetByKey(key) |
| 375 | } |
| 376 | |
| 377 | // GetByKey returns the complete list of deltas for the requested item, |
| 378 | // setting exists=false if that list is empty. |