NewMapStorage returns an implementation of Storage backed by the contents of given map. Used primarily for testing.
(data DataMap, keyTime map[blob.ID]time.Time, timeNow func() time.Time)
| 235 | // NewMapStorage returns an implementation of Storage backed by the contents of given map. |
| 236 | // Used primarily for testing. |
| 237 | func NewMapStorage(data DataMap, keyTime map[blob.ID]time.Time, timeNow func() time.Time) blob.Storage { |
| 238 | return NewMapStorageWithLimit(data, keyTime, timeNow, -1) |
| 239 | } |
| 240 | |
| 241 | // NewMapStorageWithLimit returns an implementation of Storage backed by the contents of given map. |
| 242 | // Used primarily for testing. |