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 syntax = "proto3"; |
| 6 |
| 7 package distributor; |
| 8 |
| 9 import "jobsim/jobsim.proto"; |
| 10 import "swarmingV1/swarmingV1.proto"; |
| 11 |
| 12 message Alias { |
| 13 string other_config = 1; |
| 14 } |
| 15 |
| 16 message Distributor { |
| 17 reserved 2; // future: generic pRPC based distributor |
| 18 reserved 3; // future: generic gRPC based distributor |
| 19 |
| 20 // TODO(iannucci): Maybe something like Any or extensions would be a better |
| 21 // fit here? The ultimate goal is that users will be able to use the proto |
| 22 // text format for luci-config. I suspect that Any or extensions would lose |
| 23 // the ability to validate such text-formatted protobufs, but maybe that's |
| 24 // not the case. |
| 25 oneof distributor_type { |
| 26 Alias alias = 1; |
| 27 |
| 28 swarmingV1.Config swarming_v1 = 4; |
| 29 |
| 30 // this is for testing purposes and will only be used in production to put |
| 31 // test load on DM. It's tagged at 2048 to keep it well out of the way. |
| 32 jobsim.Config jobsim = 2048; |
| 33 } |
| 34 } |
| 35 |
| 36 message Config { |
| 37 map<string, Distributor> distributor_configs = 1; |
| 38 } |
OLD | NEW |