Index: service/taskqueue/raw_interface.go |
diff --git a/service/taskqueue/raw_interface.go b/service/taskqueue/raw_interface.go |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a92a05737684fb83e01ffc921582f513771d4d70 |
--- /dev/null |
+++ b/service/taskqueue/raw_interface.go |
@@ -0,0 +1,21 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package taskqueue |
+ |
+type RawCB func(error) |
+ |
+type RawTaskCB func(*Task, error) |
+ |
+type RawStatsCB func(*Statistics, error) |
dnj
2015/08/03 22:37:25
Exported types need comments.
iannucci
2015/08/04 01:21:21
Done.
|
+ |
+// RawInterface is the full interface to the Task Queue service. |
+type RawInterface interface { |
+ AddMulti(tasks []*Task, queueName string, cb RawTaskCB) error |
+ DeleteMulti(tasks []*Task, queueName string, cb RawCB) error |
+ |
+ Purge(queueName string) error |
dnj
2015/08/03 22:37:25
Exported methods need comments.
|
+ |
+ Stats(queueNames []string, cb RawStatsCB) error |
+} |