Add timesHeapContainer with tests
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Tue, 5 Sep 2017 15:35:50 +0000 (17:35 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 27 Apr 2018 15:14:51 +0000 (17:14 +0200)
commitc12a67dbf3b5126ffbcdb18fa3b5bd26618b8630
treea7f3f5b22e1acd638133498edea9a2fa71d3552a
parent95ec880abbde95bcf655421cd7df9927a3cbf194
Add timesHeapContainer with tests

timesHeapContainer is a slice based implementation of heap.Interface
for requestTime structure (combines time.Time with ReqID).
Defined type is required for creating a heap of time structures with
additional data identifying request related to the time.
It will be used by requests package for getting minimal ValidAfter,
Deadline and Timeout times of requests. The special goroutine will
notify request-worker matcher, when proper time comes.

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