OLD | NEW |
---|---|
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 "golang.org/x/net/context" | 8 "golang.org/x/net/context" |
9 ) | 9 ) |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 // resolved keys back to the items in src. | 133 // resolved keys back to the items in src. |
134 PutMulti(src interface{}) error | 134 PutMulti(src interface{}) error |
135 | 135 |
136 // DeleteMulti removes items from the datastore. | 136 // DeleteMulti removes items from the datastore. |
137 DeleteMulti(keys []Key) error | 137 DeleteMulti(keys []Key) error |
138 | 138 |
139 // Raw returns the underlying RawInterface. The Interface and RawInterfa ce may | 139 // Raw returns the underlying RawInterface. The Interface and RawInterfa ce may |
140 // be used interchangably; there's no danger of interleaving access to t he | 140 // be used interchangably; there's no danger of interleaving access to t he |
141 // datastore via the two. | 141 // datastore via the two. |
142 Raw() RawInterface | 142 Raw() RawInterface |
143 | |
144 // Testable returns the Testable interface for the implementation, or ni l if | |
145 // there is none. | |
146 Testable() Testable | |
dnj (Google)
2015/08/14 22:53:54
Since most implementations return nil here, should
iannucci
2015/08/15 01:59:25
There's no way to cast to it, which is why I'm doi
dnj (Google)
2015/08/15 02:07:53
I was thinking something like:
testable := memory
| |
143 } | 147 } |
OLD | NEW |