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 dumbCounter | |
6 | |
7 import ( | |
8 "github.com/GoogleCloudPlatform/go-endpoints/endpoints" | |
9 "github.com/luci/luci-go/appengine/ephelper" | |
10 ) | |
11 | |
12 var ( | |
13 // MethodInfoMap is the collection of MethodInfo for the service's endpo
ints. | |
14 MethodInfoMap = ephelper.MethodInfoMap{ | |
15 "List": listMethodInfo, | |
16 "Add": addMethodInfo, | |
17 "CAS": casMethodInfo, | |
18 "CurrentValue": currentValueMethodInfo, | |
19 } | |
20 | |
21 // ServiceInfo is information about the Example service. | |
22 ServiceInfo = &endpoints.ServiceInfo{ | |
23 Name: "dumb_counter", | |
24 Version: "v1", | |
25 Description: "A hideously stupid persistant counter service.", | |
26 } | |
27 ) | |
28 | |
29 // Example is the example service type. | |
30 type Example struct { | |
31 ephelper.ServiceBase | |
32 } | |
OLD | NEW |