Are Cloud Endpoints with Go Google App Engine Standard possible?

馋奶兔 提交于 2020-01-05 04:25:09

问题


I have implemented a simple API in Go on Google App Engine Standard using just:

func init() {
    http.HandleFunc("/api/v1/resource",submitResource)
}

Nothing special. However I want to port this code to using Cloud Endpoints instead in order to get the better monitoring and diagnostics.

Is it even possible with STANDARD instances or must I move to FLEXIBLE?

I can't find any documentation on this. Nor answers to this seemingly simple question. At the moment I half wish I had chosen Python because its support seems more mature. I chose Go because it seems more appropriate for API-like code because my minimal research suggested Go offered better performance.

If it is possible, are there any pointers to how please?


回答1:


Only Python and Java are supported on GAE Standard via the Endpoints Frameworks. However, Go is supported on GAE Flexible.

Here is the Go GAE Flexible sample: https://github.com/GoogleCloudPlatform/golang-samples/tree/master/endpoints/getting-started




回答2:


After much research and trial and error, the simple answer is "No." - as of Dec 2016.

The longer answer is it's possible if you want to put far too much effort into making up to date libraries of your own. There is basically no support, even in alpha, for the current Google Cloud Endpoints using Go with Google App Engine Standard.




回答3:


It's possible to run Go+endpoints on GAE Standard environment, however libraries might be outdated now.
Libraries and sample app can be found on github:
https://github.com/GoogleCloudPlatform/go-endpoints
I have successfully deployed "Greetings" as AppEngine SE app, and it works.



来源:https://stackoverflow.com/questions/40513743/are-cloud-endpoints-with-go-google-app-engine-standard-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!