Add timesHeap with tests
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Tue, 5 Sep 2017 15:38:10 +0000 (17:38 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 27 Apr 2018 15:14:51 +0000 (17:14 +0200)
commit902e4833970972eafd3a545b0053ef6899cc9951
treecbf872066a1c540d37a0250ad3fde0f01a17f464
parentc12a67dbf3b5126ffbcdb18fa3b5bd26618b8630
Add timesHeap with tests

timesHeap uses timesHeapContainer for heap implementation.
It provides API to heap of requestTime for higher layers of requests
package.
It will be used for finding minimum time among ValidAfter, Deadline
and Timeout requests' times. Every time the minimum time will come
requests-workers matcher will be notified.

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