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

Unified Diff: appengine/cmd/dm/distributor/config.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: work in progress Created 4 years, 11 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/cmd/dm/distributor/config.go
diff --git a/appengine/cmd/dm/distributor/config.go b/appengine/cmd/dm/distributor/config.go
new file mode 100644
index 0000000000000000000000000000000000000000..dbfbcf8b20fb1c109c113e93e1e28ab1ed350559
--- /dev/null
+++ b/appengine/cmd/dm/distributor/config.go
@@ -0,0 +1,35 @@
+// 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 distributor
+
+import (
+ "github.com/golang/protobuf/proto"
+)
+
+// Config represents the configuration for a single instance of a given
+// distributor implementation at a given point in time (e.g. version).
+type Config struct {
+ // DMBaseURL is the base url for the DM API. This may be used by the
+ // distributor implementation to pass to jobs so that they can call back into
+ // DM's api.
+ DMBaseURL string
+
+ // TQHandlerURL is a TaskQueue "Path" that the distributor can use to get work
+ // done on its HandleTaskQueueTask callback. The callback will be invoked on
+ // a different (but identically configured) instance of the distributor.
+ TQHandlerURL string
+
+ // CfgName is the name of this distributor configuration item. This is always
+ // the fully-resolved name of the configuration (e.g. aliases are
+ // dereferenced).
+ CfgName string
+
+ // Version is the version of the distributor configuration retrieved from
+ // luci-config
+ Version string
+
+ // ImplConfig is the actual parsed implementation configuration.
+ ImplConfig proto.Message
+}
« no previous file with comments | « no previous file | appengine/cmd/dm/distributor/distributor.go » ('j') | appengine/cmd/dm/distributor/distributor.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698