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 |
+} |