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

Unified Diff: appengine/cmd/dm/distributor/impl/swarmingV1/distributor.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/impl/swarmingV1/distributor.go
diff --git a/appengine/cmd/dm/distributor/impl/swarmingV1/distributor.go b/appengine/cmd/dm/distributor/impl/swarmingV1/distributor.go
new file mode 100644
index 0000000000000000000000000000000000000000..c49873e1facebe1b8b83e29a2bc5d32e2bf8d8d1
--- /dev/null
+++ b/appengine/cmd/dm/distributor/impl/swarmingV1/distributor.go
@@ -0,0 +1,23 @@
+// 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 swarmingV1
+
+import (
+ "github.com/golang/protobuf/proto"
+ "github.com/luci/luci-go/appengine/cmd/dm/distributor"
+ sv1 "github.com/luci/luci-go/appengine/cmd/dm/distributor/protos/swarmingV1"
+)
+
+func factory(cfg *sv1.Config) (distributor.Interface, error) {
+ panic("swarmingV1.factory not implemented")
+}
+
+// Register registers this distributor implementation with the distributor
+// package registry.
+func Register(reg distributor.Registry) {
+ reg.Register(&sv1.Config{}, func(msg proto.Message) (distributor.Interface, error) {
+ return factory(msg.(*sv1.Config))
+ })
+}

Powered by Google App Engine
This is Rietveld 408576698