| 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 rawdatastore | 5 package datastore |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 | 9 |
| 10 "golang.org/x/net/context" | 10 "golang.org/x/net/context" |
| 11 ) | 11 ) |
| 12 | 12 |
| 13 // Key is the equivalent of *datastore.Key from the original SDK, except that | 13 // Key is the equivalent of *datastore.Key from the original SDK, except that |
| 14 // it can have multiple implementations. See helper.Key* methods for missing | 14 // it can have multiple implementations. See helper.Key* methods for missing |
| 15 // methods like KeyIncomplete (and some new ones like KeyValid). | 15 // methods like KeyIncomplete (and some new ones like KeyValid). |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // DeleteMulti removes items from the datastore. | 118 // DeleteMulti removes items from the datastore. |
| 119 // | 119 // |
| 120 // Callback execues once per key, in the order of keys. Callback may not | 120 // Callback execues once per key, in the order of keys. Callback may not |
| 121 // execute at all if there's a server error. | 121 // execute at all if there's a server error. |
| 122 // | 122 // |
| 123 // NOTE: Implementations and filters are guaranteed that keys are all Va
lid | 123 // NOTE: Implementations and filters are guaranteed that keys are all Va
lid |
| 124 // and Complete, and in the correct namespace, and are not 'special'. | 124 // and Complete, and in the correct namespace, and are not 'special'. |
| 125 // Callback may be nil. | 125 // Callback may be nil. |
| 126 DeleteMulti(keys []Key, cb DeleteMultiCB) error | 126 DeleteMulti(keys []Key, cb DeleteMultiCB) error |
| 127 } | 127 } |
| OLD | NEW |