OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package prod | 5 package prod |
6 | 6 |
7 import ( | 7 import ( |
8 "github.com/luci/gae/service/module" | 8 "github.com/luci/gae/service/module" |
9 "golang.org/x/net/context" | 9 "golang.org/x/net/context" |
10 aeModule "google.golang.org/appengine/module" | 10 aeModule "google.golang.org/appengine/module" |
11 ) | 11 ) |
12 | 12 |
13 // useModule adds a Module implementation to context. | 13 // useModule adds a Module implementation to context. |
(...skipping 28 matching lines...) Expand all Loading... |
42 return aeModule.DefaultVersion(m.aeCtx, module) | 42 return aeModule.DefaultVersion(m.aeCtx, module) |
43 } | 43 } |
44 | 44 |
45 func (m modImpl) Start(module, version string) error { | 45 func (m modImpl) Start(module, version string) error { |
46 return aeModule.Start(m.aeCtx, module, version) | 46 return aeModule.Start(m.aeCtx, module, version) |
47 } | 47 } |
48 | 48 |
49 func (m modImpl) Stop(module, version string) error { | 49 func (m modImpl) Stop(module, version string) error { |
50 return aeModule.Stop(m.aeCtx, module, version) | 50 return aeModule.Stop(m.aeCtx, module, version) |
51 } | 51 } |
OLD | NEW |