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

Side by Side Diff: service/datastore/reflect.go

Issue 1270113002: Re-add metadata passthrough on Get operations (Closed) Base URL: https://github.com/luci/gae.git@fix_other_interfaces
Patch Set: cleanup Created 5 years, 4 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
« no previous file with comments | « service/datastore/raw_interface_test.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package datastore 5 package datastore
6 6
7 import ( 7 import (
8 "reflect" 8 "reflect"
9 "time" 9 "time"
10 10
11 "github.com/luci/gae/service/blobstore" 11 "github.com/luci/gae/service/blobstore"
12 ) 12 )
13 13
14 var ( 14 var (
15 typeOfBool = reflect.TypeOf(false)
16 typeOfBSKey = reflect.TypeOf(blobstore.Key("")) 15 typeOfBSKey = reflect.TypeOf(blobstore.Key(""))
17 typeOfByteSlice = reflect.TypeOf([]byte(nil))
18 typeOfByteString = reflect.TypeOf(ByteString(nil)) 16 typeOfByteString = reflect.TypeOf(ByteString(nil))
19 typeOfFloat64 = reflect.TypeOf(float64(0))
20 typeOfGeoPoint = reflect.TypeOf(GeoPoint{}) 17 typeOfGeoPoint = reflect.TypeOf(GeoPoint{})
21 typeOfInt64 = reflect.TypeOf(int64(0)) 18 typeOfInt64 = reflect.TypeOf(int64(0))
22 typeOfKey = reflect.TypeOf((*Key)(nil)).Elem() 19 typeOfKey = reflect.TypeOf((*Key)(nil)).Elem()
23 typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem () 20 typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem ()
24 typeOfPropertyLoadSaver = reflect.TypeOf((*PropertyLoadSaver)(nil)).Elem () 21 typeOfPropertyLoadSaver = reflect.TypeOf((*PropertyLoadSaver)(nil)).Elem ()
25 typeOfString = reflect.TypeOf("") 22 typeOfString = reflect.TypeOf("")
26 typeOfTime = reflect.TypeOf(time.Time{}) 23 typeOfTime = reflect.TypeOf(time.Time{})
27 typeOfToggle = reflect.TypeOf(Auto) 24 typeOfToggle = reflect.TypeOf(Auto)
28 valueOfnilDSKey = reflect.Zero(typeOfKey)
29 ) 25 )
OLDNEW
« no previous file with comments | « service/datastore/raw_interface_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698