prod

package
v0.0.0-...-e6cee59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2015 License: BSD-3-Clause Imports: 23 Imported by: 0

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

func AEContext(c context.Context) context.Context

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

func AEContextNoTxn(c context.Context) context.Context

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).
    

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL