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 distributor |
| 6 |
| 7 import ( |
| 8 "github.com/golang/protobuf/proto" |
| 9 ) |
| 10 |
| 11 // Config represents the configuration for a single instance of a given |
| 12 // distributor implementation at a given point in time (e.g. version). |
| 13 type Config struct { |
| 14 // DMBaseURL is the base url for the DM API. This may be used by the |
| 15 // distributor implementation to pass to jobs so that they can call back
into |
| 16 // DM's api. |
| 17 DMBaseURL string |
| 18 |
| 19 // TQHandlerURL is a TaskQueue "Path" that the distributor can use to ge
t work |
| 20 // done on its HandleTaskQueueTask callback. The callback will be invoke
d on |
| 21 // a different (but identically configured) instance of the distributor. |
| 22 TQHandlerURL string |
| 23 |
| 24 // CfgName is the name of this distributor configuration item. This is a
lways |
| 25 // the fully-resolved name of the configuration (e.g. aliases are |
| 26 // dereferenced). |
| 27 CfgName string |
| 28 |
| 29 // Version is the version of the distributor configuration retrieved fro
m |
| 30 // luci-config |
| 31 Version string |
| 32 |
| 33 // ImplConfig is the actual parsed implementation configuration. |
| 34 ImplConfig proto.Message |
| 35 } |
OLD | NEW |