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 service is an example Google Cloud Endpoints service. | |
6 // | |
7 // It implements a really dumb named persistant counter. | |
8 package service | |
9 | |
10 import ( | |
11 "github.com/GoogleCloudPlatform/go-endpoints/endpoints" | |
12 "github.com/luci/luci-go/appengine/apigen_examples/dumb_counter/dumbCoun
ter" | |
13 "github.com/luci/luci-go/appengine/ephelper" | |
14 ) | |
15 | |
16 // Uncomment this block to make this a Managed VM application. | |
17 func init() { | |
18 ephelper.Register(endpoints.DefaultServer, &dumbCounter.Example{}, dumbC
ounter.ServiceInfo, dumbCounter.MethodInfoMap) | |
19 endpoints.HandleHTTP() | |
20 } | |
OLD | NEW |