mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-14 00:42:44 +00:00
24 lines
370 B
Go
24 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()
|
|
}
|