1
0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-09-16 14:18:32 +00:00
cloudkeys-go/appengine.go

25 lines
370 B
Go

// +build appengine
package main
import (
"context"
"net/http"
"google.golang.org/appengine"
"google.golang.org/appengine/urlfetch"
)
func getHTTPClient(ctx context.Context) *http.Client {
return urlfetch.Client(ctx)
}
func getContext(r *http.Request) context.Context {
return appengine.NewContext(r)
}
func main() {
initializeStorage()
appengine.Main()
}