identity_classic.go 1.1 KB

123456789101112131415161718192021222324252627
  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.
  4. // +build appengine
  5. package internal
  6. import (
  7. "appengine"
  8. netcontext "golang.org/x/net/context"
  9. )
  10. func DefaultVersionHostname(ctx netcontext.Context) string {
  11. return appengine.DefaultVersionHostname(fromContext(ctx))
  12. }
  13. func RequestID(ctx netcontext.Context) string { return appengine.RequestID(fromContext(ctx)) }
  14. func Datacenter(_ netcontext.Context) string { return appengine.Datacenter() }
  15. func ServerSoftware() string { return appengine.ServerSoftware() }
  16. func ModuleName(ctx netcontext.Context) string { return appengine.ModuleName(fromContext(ctx)) }
  17. func VersionID(ctx netcontext.Context) string { return appengine.VersionID(fromContext(ctx)) }
  18. func InstanceID() string { return appengine.InstanceID() }
  19. func IsDevAppServer() bool { return appengine.IsDevAppServer() }
  20. func fullyQualifiedAppID(ctx netcontext.Context) string { return fromContext(ctx).FullyQualifiedAppID() }