OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package taskqueue |
| 6 |
| 7 // Interface is the full interface to the Task Queue service. |
| 8 type Interface interface { |
| 9 Add(task *Task, queueName string) (*Task, error) |
| 10 Delete(task *Task, queueName string) error |
| 11 |
| 12 AddMulti(tasks []*Task, queueName string) ([]*Task, error) |
| 13 DeleteMulti(tasks []*Task, queueName string) error |
| 14 |
| 15 Lease(maxTasks int, queueName string, leaseTime int) ([]*Task, error) |
| 16 LeaseByTag(maxTasks int, queueName string, leaseTime int, tag string) ([
]*Task, error) |
| 17 ModifyLease(task *Task, queueName string, leaseTime int) error |
| 18 |
| 19 Purge(queueName string) error |
| 20 |
| 21 QueueStats(queueNames []string) ([]Statistics, error) |
| 22 } |
OLD | NEW |