github.com/jgbaldwinbrown/perf@v0.1.1/storage/app/appengine.go (about) 1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build appengine 6 // +build appengine 7 8 package app 9 10 import ( 11 "net/http" 12 13 "golang.org/x/net/context" 14 "google.golang.org/appengine" 15 "google.golang.org/appengine/log" 16 ) 17 18 // requestContext returns the Context object for a given request. 19 func requestContext(r *http.Request) context.Context { 20 return appengine.NewContext(r) 21 } 22 23 var infof = log.Infof 24 var errorf = log.Errorf