1 // Copyright 2015 Google Inc. All rights reserved.
2 // Use of this source code is governed by the Apache 2.0
3 // license that can be found in the LICENSE file.
12 netcontext "golang.org/x/net/context"
16 appengineStandard = true
19 func DefaultVersionHostname(ctx netcontext.Context) string {
22 panic(errNotAppEngineContext)
24 return appengine.DefaultVersionHostname(c)
27 func Datacenter(_ netcontext.Context) string { return appengine.Datacenter() }
28 func ServerSoftware() string { return appengine.ServerSoftware() }
29 func InstanceID() string { return appengine.InstanceID() }
30 func IsDevAppServer() bool { return appengine.IsDevAppServer() }
32 func RequestID(ctx netcontext.Context) string {
35 panic(errNotAppEngineContext)
37 return appengine.RequestID(c)
40 func ModuleName(ctx netcontext.Context) string {
43 panic(errNotAppEngineContext)
45 return appengine.ModuleName(c)
47 func VersionID(ctx netcontext.Context) string {
50 panic(errNotAppEngineContext)
52 return appengine.VersionID(c)
55 func fullyQualifiedAppID(ctx netcontext.Context) string {
58 panic(errNotAppEngineContext)
60 return c.FullyQualifiedAppID()