Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Valentin Deleplace ef2135aad6
Memcache item timestamps (#323)
* Add memcache item timestamps.

* v1 require google.golang.org/protobuf.

* Memcache new fields: use proto getters.
2023-08-25 12:43:42 -07:00
Sebastiaan van Stijn a1ae214131
remove golang.org/x/net dependency (#295)
* remove golang.org/x/net dependency

The golang.org/x/net/context package is an alias for stdlib context
since go1.7 (see https://go-review.googlesource.com/72570)

This patch replaces all uses of it for stdlib context.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* rename App Engine context type to remove import aliases

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

---------

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-03-01 10:29:44 -08:00
Robert Iannucci 5a9e2b406e Normalize namespace and transaction application.
This causes Call to apply Namespace at the very beginning of the
Call chain.

This prevents an issue where some appserver APIs treat NameSpace=nil
and NameSpace="" distinctly (with the latter being an error). Now if
the namespace is unset or set to "" in the SDK, no namespace will be
applied to the outgoing message.

This also implements a very basic ContextForTesting for classic
testing.

Change-Id: I0c5c2917d958920ab015b8cf7f6b34a2a1b8d2a0
2016-05-17 01:27:11 +00:00
Chris Broadfoot 5d51656393 Add missing copyright headers.
Change-Id: I4f3f10c41c94a975cc9d451fad9e3ae01117cd59
2015-08-25 23:55:53 +00:00
Dave Day 8c64777763 appengine/memcache: fix doc typo
Change-Id: I1c0bce9a21f61cbcd92702d24cb57b0e7b8ec075
2015-04-07 06:51:22 +00:00
David Symonds d1e7e222a2 Remove internal.CallOptions entirely, and use the context's timeout for API calls.
Change-Id: I3fef83cf331c857e6c8c552eed89a34cd0ea6e1c
2015-01-28 16:44:06 +11:00
David Symonds 1c3fdc51e1 Convert tree from appengine.Context to context.Context.
Most well-formed application code will require minimal changes:
	- The type is now golang.org/x/net/context.(*Context).
	- c := appengine.NewContext(r) still works.
	- Most API calls still look exactly the same.
	- Logging now uses the google.golang.org/appengine/log package.

Change-Id: I7fa089efa8d0b1e7beeeb6233a98fe054020b1fc
2015-01-21 09:10:09 +11:00
Dave Day edb3398d9f memcache: Add clarifying comment to memcache.Statistics
Change-Id: I2833690608e26705f021bca0727d29dd67196364
2015-01-14 00:41:55 +00:00
David Symonds c98f627282 Update code and regenerate .pb.go files for new location of goprotobuf.
Change-Id: I1d64ba6bf13fd7fc2fa9c4c7addc7163ef8a26ee
2014-11-25 11:47:41 +11:00
Dave Day d510d6ed93 Add canonical import comments for each package
Change-Id: I0bf39b2728f8403008f9a1d6d3faba06f1c77ac9
2014-11-13 17:19:19 +11:00
Dave Day 14a35555f9 appengine/memcache: short circuit *Multi calls when the slice is empty
Change-Id: I831173a06bce660c4dd8327260dec7896b6dded4
2014-11-10 15:22:52 +11:00
Dave Day 4b547d76d1 Run gofmt -s over all files
Change-Id: I2ee1ad1172d7c423222f3879304bbd88eb9be623
2014-06-10 12:22:59 +10:00
David Symonds 8a333aad43 Correctly apply namespace when nesting namespaced contexts.
Previously if you have a context c,
and wrap it in a namespace "A" to give nc,
and wrap *that* in the empty namespace "" (to get back to root) to give c0,
then API calls made against c0 would be incorrectly namespaced,
because the namespace mods would not be applied with the empty namespace
(a trivial and ultimately buggy optimisation), and would therefore pass
the API call on to nc, which would apply namespace "A".

The fix here is to always apply namespace modifications in namespacedContext,
even if the namespace is empty.

Change-Id: Ieaf5c67e869d2cc9b619b922907d5c5fffde2643
2014-05-28 16:17:49 +10:00
David Symonds 9e7af23396 Change import paths from github.com/golang/appengine to google.golang.org/appengine.
Change-Id: I653ceae860405a5e2d699908eb975a97ee64495b
2014-02-05 11:47:53 +11:00
David Symonds 7ee378922d Add memcache package.
Change-Id: I8c927e6e29a946e8b544da5c706996064bb60930
2014-01-29 12:11:58 +11:00