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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698