Documentation ¶
Overview ¶
Package prod provides an implementation of infra/gae/libs/wrapper which backs to appengine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AEContext ¶
AEContext retrieves the raw "google.golang.org/appengine" compatible Context.
It also transfers deadline of `c` to AE context, since deadline is used for RPCs. Doesn't transfer cancelation ability though (since it's ignored by GAE anyway).
func AEContextNoTxn ¶
AEContextNoTxn retrieves the raw "google.golang.org/appengine" compatible Context that's not part of a transaction.
func Use ¶
Use adds production implementations for all the gae services to the context.
The services added are:
- github.com/luci-go/common/logging
- github.com/luci/gae/service/datastore
- github.com/luci/gae/service/info
- github.com/luci/gae/service/mail
- github.com/luci/gae/service/memcache
- github.com/luci/gae/service/taskqueue
- github.com/luci/gae/service/urlfetch
- github.com/luci/gae/service/user
These can be retrieved with the <service>.Get functions.
The implementations are all backed by the real appengine SDK functionality,
Types ¶
This section is empty.
Notes ¶
Bugs ¶
*datastore.Key objects have their AppID dropped when this package
converts them internally to use with the underlying datastore. In practice this shouldn't be much of an issue, since you normally have no control over the AppID field of a Key anyway (aside from deserializing one directly from a proto).