File: identity_classic.go

package info (click to toggle)
golang-google-appengine 1.0.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,456 kB
  • sloc: sh: 22; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 1,114 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2015 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.

// +build appengine

package internal

import (
	"appengine"

	netcontext "golang.org/x/net/context"
)

func DefaultVersionHostname(ctx netcontext.Context) string {
	return appengine.DefaultVersionHostname(fromContext(ctx))
}

func RequestID(ctx netcontext.Context) string  { return appengine.RequestID(fromContext(ctx)) }
func Datacenter(_ netcontext.Context) string   { return appengine.Datacenter() }
func ServerSoftware() string                   { return appengine.ServerSoftware() }
func ModuleName(ctx netcontext.Context) string { return appengine.ModuleName(fromContext(ctx)) }
func VersionID(ctx netcontext.Context) string  { return appengine.VersionID(fromContext(ctx)) }
func InstanceID() string                       { return appengine.InstanceID() }
func IsDevAppServer() bool                     { return appengine.IsDevAppServer() }

func fullyQualifiedAppID(ctx netcontext.Context) string { return fromContext(ctx).FullyQualifiedAppID() }