OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI 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 under the Apache License, Version 2.0 |
3 // 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 // TestingSnapshot is an opaque implementation-defined snapshot type. | 7 // TestingSnapshot is an opaque implementation-defined snapshot type. |
8 type TestingSnapshot interface { | 8 type TestingSnapshot interface { |
9 ImATestingSnapshot() | 9 ImATestingSnapshot() |
10 } | 10 } |
11 | 11 |
12 // Testable is the testable interface for fake datastore implementations. | 12 // Testable is the testable interface for fake datastore implementations. |
13 type Testable interface { | 13 type Testable interface { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // - Put'ing incomplete Keys returns an error. | 67 // - Put'ing incomplete Keys returns an error. |
68 // - Transactions are disabled and will return an error. | 68 // - Transactions are disabled and will return an error. |
69 // | 69 // |
70 // This is mainly only useful when using an embedded in-memory datastore
as | 70 // This is mainly only useful when using an embedded in-memory datastore
as |
71 // a fully-consistent 'datastore-lite'. In particular, this is useful fo
r the | 71 // a fully-consistent 'datastore-lite'. In particular, this is useful fo
r the |
72 // txnBuf filter which uses it to fulfil queries in a buffered transacti
on, | 72 // txnBuf filter which uses it to fulfil queries in a buffered transacti
on, |
73 // but never wants the in-memory versions of these entities to bleed thr
ough | 73 // but never wants the in-memory versions of these entities to bleed thr
ough |
74 // to the user code. | 74 // to the user code. |
75 DisableSpecialEntities(bool) | 75 DisableSpecialEntities(bool) |
76 } | 76 } |
OLD | NEW |