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