From f2909d097e6c4709eff07a86e6a3e12534a56a20 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 8 Dec 2017 17:23:26 +0100 Subject: dashboard/app: add API for polling for closed bugs External reporting may need to know when dashboard is not interested in bugs anymore. Add API that returns list of bugs dashboard considers closed. --- dashboard/dashapi/dashapi.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index e650dae83..6be3975e5 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -242,14 +242,22 @@ type BugUpdateReply struct { Text string } -type PollRequest struct { +type PollBugsRequest struct { Type string } -type PollResponse struct { +type PollBugsResponse struct { Reports []*BugReport } +type PollClosedRequest struct { + IDs []string +} + +type PollClosedResponse struct { + IDs []string +} + type ManagerStatsReq struct { Name string Addr string -- cgit mrf-deployment