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

Side by Side Diff: appengine/apigen_examples/dumb_counter/dumbCounter/service.go

Issue 1750143003: Remove ephelper and other endpoints code. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 9 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 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698