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

Unified Diff: appengine/logdog/coordinator/backend/backend.go

Issue 1910633006: LogDog: Support per-namespace expired archival. (Closed) Base URL: https://github.com/luci/luci-go@logdog-coordinator-svcdec
Patch Set: Update another test. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: appengine/logdog/coordinator/backend/backend.go
diff --git a/appengine/logdog/coordinator/backend/backend.go b/appengine/logdog/coordinator/backend/backend.go
deleted file mode 100644
index f5dbb3791186d3ad7e8d0dcb0f4d8afc79618209..0000000000000000000000000000000000000000
--- a/appengine/logdog/coordinator/backend/backend.go
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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 backend
-
-import (
- "github.com/julienschmidt/httprouter"
- "github.com/luci/luci-go/appengine/gaemiddleware"
- "github.com/luci/luci-go/server/middleware"
-)
-
-const (
- // defaultMultiTaskBatchSize is the default value for Backend's
- // multiTaskBatchSize parameter.
- defaultMultiTaskBatchSize = 100
-)
-
-// Backend is the base struct for all Backend handlers. It is mostly used to
-// configure testing parameters.
-type Backend struct {
- // multiTaskBatchSize is the number of batch tasks to create at a time.
- multiTaskBatchSize int
-}
-
-func (b *Backend) getMultiTaskBatchSize() int {
- if v := b.multiTaskBatchSize; v > 0 {
- return v
- }
- return defaultMultiTaskBatchSize
-}
-
-// InstallHandlers installs handlers for the Backend.
-func (b *Backend) InstallHandlers(r *httprouter.Router, h middleware.Base) {
- r.GET("/archive/cron", h(gaemiddleware.RequireCron(b.HandleArchiveCron)))
-}
« no previous file with comments | « appengine/logdog/coordinator/backend/archiveCron_test.go ('k') | appengine/logdog/coordinator/backend/doc.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698