.github
alerting
client
config
controller
core
docs
example
jsonpath
k8s
k8stest
metric
pattern
security
static
storage
vendor
cloud.google.com
github.com
golang.org
google.golang.org
appengine
internal
urlfetch
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
appengine.go
appengine_vm.go
errors.go
go.mod
go.sum
identity.go
namespace.go
timeout.go
travis_install.sh
travis_test.sh
protobuf
gopkg.in
k8s.io
sigs.k8s.io
modules.txt
watchdog
web
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE.md
README.md
config.yaml
go.mod
go.sum
main.go
21 lines
548 B
Go
21 lines
548 B
Go
// 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 appengine
|
|
|
|
import (
|
|
"golang.org/x/net/context"
|
|
|
|
"google.golang.org/appengine/internal"
|
|
)
|
|
|
|
// BackgroundContext returns a context not associated with a request.
|
|
// This should only be used when not servicing a request.
|
|
// This only works in App Engine "flexible environment".
|
|
func BackgroundContext() context.Context {
|
|
return internal.BackgroundContext()
|
|
}
|