OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package wrapper | 5 package gae |
6 | 6 |
7 import ( | 7 // QueueData is {queueName: {taskName: *TQTask}} |
8 » "appengine/taskqueue" | 8 type QueueData map[string]map[string]*TQTask |
9 ) | |
10 | 9 |
11 // QueueData is {queueName: {taskName: *Task}} | 10 // AnonymousQueueData is {queueName: [*TQTask]} |
12 type QueueData map[string]map[string]*taskqueue.Task | 11 type AnonymousQueueData map[string][]*TQTask |
13 | |
14 // AnonymousQueueData is {queueName: [*Task]} | |
15 type AnonymousQueueData map[string][]*taskqueue.Task | |
16 | 12 |
17 // TQTestable is the testable interface for fake taskqueue implementations | 13 // TQTestable is the testable interface for fake taskqueue implementations |
18 type TQTestable interface { | 14 type TQTestable interface { |
19 Testable | 15 Testable |
20 | 16 |
21 CreateQueue(queueName string) | 17 CreateQueue(queueName string) |
22 GetScheduledTasks() QueueData | 18 GetScheduledTasks() QueueData |
23 GetTombstonedTasks() QueueData | 19 GetTombstonedTasks() QueueData |
24 GetTransactionTasks() AnonymousQueueData | 20 GetTransactionTasks() AnonymousQueueData |
25 ResetTasks() | 21 ResetTasks() |
26 } | 22 } |
OLD | NEW |