DescriptionMake UseRemote work for dev_appserver too.
Now interacting with remote_api is as simple as:
```go
ctx := context.Background()
if err := prod.UseRemote(&ctx, "localhost:8080", nil); err != nil {
panic(err)
}
// ctx is usable with luci/gae
```
Also changes the context-derivation function signature to be safer, since the
client's context will always be valid, and can be used for things, such as
logging even in the error handling case.
This also makes UseRemote work when used FROM appengine to another appengine
app.
Fixes #36.
R=dnj@chromium.org, estaab@chromium.org, martiniss@chromium.org, vadimsh@chromium.org
BUG=
Committed: https://github.com/luci/gae/commit/ed44bee34120a74ccb1a6b026752fd905b2517e1
Patch Set 1 #Patch Set 2 : Add support for creating remote_api connections FROM appengine #Messages
Total messages: 11 (4 generated)
|