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 swarmingV1 |
| 6 |
| 7 import ( |
| 8 "github.com/golang/protobuf/proto" |
| 9 "github.com/luci/luci-go/appengine/cmd/dm/distributor" |
| 10 sv1 "github.com/luci/luci-go/appengine/cmd/dm/distributor/protos/swarmin
gV1" |
| 11 ) |
| 12 |
| 13 func factory(cfg *sv1.Config) (distributor.Interface, error) { |
| 14 panic("swarmingV1.factory not implemented") |
| 15 } |
| 16 |
| 17 // Register registers this distributor implementation with the distributor |
| 18 // package registry. |
| 19 func Register(reg distributor.Registry) { |
| 20 reg.Register(&sv1.Config{}, func(msg proto.Message) (distributor.Interfa
ce, error) { |
| 21 return factory(msg.(*sv1.Config)) |
| 22 }) |
| 23 } |
OLD | NEW |