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

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

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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/query_test.go ('k') | service/datastore/serialize/serialize.go » ('j') | 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 LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package datastore 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"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // receives an error, it will immediately forward that error and stop 177 // receives an error, it will immediately forward that error and stop
178 // subsequent callbacks. 178 // subsequent callbacks.
179 // 179 //
180 // NOTE: Implementations and filters are guaranteed that 180 // NOTE: Implementations and filters are guaranteed that
181 // - len(keys) > 0 181 // - len(keys) > 0
182 // - all keys are Valid, !Incomplete, and in the current namespace 182 // - all keys are Valid, !Incomplete, and in the current namespace
183 // - none keys of the keys are 'special' (use a kind prefixed with '__ ') 183 // - none keys of the keys are 'special' (use a kind prefixed with '__ ')
184 // - cb is not nil 184 // - cb is not nil
185 DeleteMulti(keys []*Key, cb DeleteMultiCB) error 185 DeleteMulti(keys []*Key, cb DeleteMultiCB) error
186 186
187 » // Testable returns the Testable interface for the implementation, or ni l if 187 » // WithoutTransaction returns a derived Context without a transaction ap plied.
188 » // there is none. 188 » // This may be called even when outside of a transaction, in which case the
189 » Testable() Testable 189 » // input Context is a valid return value.
190 » WithoutTransaction() context.Context
191
192 » // CurrentTransaction returns a reference to the current Transaction, or nil
193 » // if the Context does not have a current Transaction.
194 » CurrentTransaction() Transaction
195
196 » // GetTestable returns the Testable interface for the implementation, or nil
197 » // if there is none.
198 » GetTestable() Testable
190 } 199 }
OLDNEW
« no previous file with comments | « service/datastore/query_test.go ('k') | service/datastore/serialize/serialize.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698