diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-08 17:23:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-19 11:05:42 +0100 |
| commit | f2909d097e6c4709eff07a86e6a3e12534a56a20 (patch) | |
| tree | 2b122dcd5f07f6d7e971087a7091aefb57ad4e70 /dashboard/dashapi/dashapi.go | |
| parent | 25793abb59e8bdfb808bfce274553ede6ae28a47 (diff) | |
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.
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
| -rw-r--r-- | dashboard/dashapi/dashapi.go | 12 |
1 files changed, 10 insertions, 2 deletions
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 |
