HTTP API: Implement ListFilter interface
authorMaciej Wereski <m.wereski@partner.samsung.com>
Thu, 28 Sep 2017 15:18:05 +0000 (17:18 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 5 Jun 2018 09:26:40 +0000 (11:26 +0200)
commit27b25c8c40a0a8dedaf01115b9f1beef25a3a1b2
tree27958ff7c5198f110c14d347e968629e370d69dd
parent7bf1c478fa1d675acdd416f1b1fee17604f29c6d
HTTP API: Implement ListFilter interface

To filter requests method ListRequests() from Requests interface will be
called. This method needs to be passed argument that implements
ListFilter interface. This interface provides appropriate Match()
method, which is used by ListRequests() to decide if request should be
appended to the results.

Change-Id: Ic284a5c2b173328f079184c7c4eac56e723db533
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
server/api/v1/filter.go [new file with mode: 0644]
server/api/v1/filter_test.go [new file with mode: 0644]