1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-08 22:20:05 +00:00
cloudkeys-go/appengine.go

25 lines
370 B
Go
Raw Normal View History

// +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()
}