NewVersionedMapStorage returns an implementation of Storage backed by the contents of an internal in-memory map used primarily for testing.
(timeNow func() time.Time)
| 298 | // NewVersionedMapStorage returns an implementation of Storage backed by the |
| 299 | // contents of an internal in-memory map used primarily for testing. |
| 300 | func NewVersionedMapStorage(timeNow func() time.Time) RetentionStorage { |
| 301 | if timeNow == nil { |
| 302 | timeNow = clock.Now |
| 303 | } |
| 304 | |
| 305 | return &objectLockingMap{data: make(versionedEntries), timeNow: timeNow} |
| 306 | } |
no outgoing calls