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

Unified Diff: go/src/infra/gae/epservice/example/model.go

Issue 1153473008: A client/server helper wrapper for endpoints in Go. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: rm newline Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: go/src/infra/gae/epservice/example/model.go
diff --git a/go/src/infra/gae/epservice/example/model.go b/go/src/infra/gae/epservice/example/model.go
new file mode 100644
index 0000000000000000000000000000000000000000..cc47fcdee3680b26f5376ca9ad495fe50c566566
--- /dev/null
+++ b/go/src/infra/gae/epservice/example/model.go
@@ -0,0 +1,14 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package example
+
+// Crappy datastore model!
+
+// Counter is a stupid model which holds a single numerical value.
+type Counter struct {
+ ID string `datastore:"-" goon:"id"`
+
+ Val int64 `json:",string"`
+}
« no previous file with comments | « go/src/infra/gae/epservice/example/example.infra_testing ('k') | go/src/infra/gae/epservice/example/service.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698