Add requestTimes with tests
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Wed, 13 Sep 2017 18:02:18 +0000 (20:02 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 27 Apr 2018 15:14:51 +0000 (17:14 +0200)
commitab5192a689e2efd7ff816d4f667458d63528bbf7
tree136cd831db801c951cfa95a80aeff78d58a14448
parente67adcb8b13f4ea57b7e2b3f5eefa1c333daf817
Add requestTimes with tests

requestTimes collects requestTime objects and notifies registered
matcher.Matcher when the time comes. Past times are removed from
collection. timesHeap is used for storing requestTime objects.
Notifications are called asynchronously from dedicated goroutine.
requestTimes will be used by requests package for monitoring ValidAfter,
Deadline and Timeout time of requests.

Change-Id: Ib27608f89057791bb1d615ec881ba2c06512f6f0
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
requests/times.go [new file with mode: 0644]
requests/times_test.go [new file with mode: 0644]