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

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

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: 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
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 » // WithTransaction, given a Context, returns a derived Context with the
188 » // there is none. 188 » // supplied datastore Transaction installed.
189 » Testable() Testable 189 » WithTransaction(Transaction) context.Context
190
191 » // CurrentTransaction returns a reference to the current Transaction, or nil
192 » // if the Context does not have a current Transaction.
193 » CurrentTransaction() Transaction
194
195 » // GetTestable returns the Testable interface for the implementation, or nil
196 » // if there is none.
197 » GetTestable() Testable
190 } 198 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698