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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 // - []I where i is some interface type. Each elemet of the slice must | 135 // - []I where i is some interface type. Each elemet of the slice must |
136 // be non-nil, and its underlying type must be either *S or *P. | 136 // be non-nil, and its underlying type must be either *S or *P. |
137 // | 137 // |
138 // If items in src resolve to Incomplete keys, PutMulti will write the | 138 // If items in src resolve to Incomplete keys, PutMulti will write the |
139 // resolved keys back to the items in src. | 139 // resolved keys back to the items in src. |
140 PutMulti(src interface{}) error | 140 PutMulti(src interface{}) error |
141 | 141 |
142 // DeleteMulti removes items from the datastore. | 142 // DeleteMulti removes items from the datastore. |
143 DeleteMulti(keys []Key) error | 143 DeleteMulti(keys []Key) error |
144 | 144 |
145 // Testable returns the Testable interface for the implementation, or ni l if | |
146 // there is none. | |
147 Testable() Testable | |
Vadim Sh.
2015/09/14 18:16:18
I've just added it to interface definition and it
| |
148 | |
145 // Raw returns the underlying RawInterface. The Interface and RawInterfa ce may | 149 // Raw returns the underlying RawInterface. The Interface and RawInterfa ce may |
146 // be used interchangably; there's no danger of interleaving access to t he | 150 // be used interchangably; there's no danger of interleaving access to t he |
147 // datastore via the two. | 151 // datastore via the two. |
148 Raw() RawInterface | 152 Raw() RawInterface |
149 } | 153 } |
OLD | NEW |