Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1410)

Side by Side Diff: service/taskqueue/interface.go

Issue 1243323002: Refactor a bit. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix golint Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « service/taskqueue/errors.go ('k') | service/taskqueue/testable.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « service/taskqueue/errors.go ('k') | service/taskqueue/testable.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698