This repo contains 2 examples of App Engine Managed VMs: one using the standard runtime and one using a custom runtime.
Both projects make use of the App Engine Datastore and Google Cloud Storage services.
Both projects also make use of the Auto-generated Google APIs for Go.
All of the app logic is written in terms of context.Context,
which allows for common deadlines and cancellation of request scoped work. Both the
standard and custom runtimes will turn every request into one that takes a context.Context
.
The handler/
directory is responsible for this work.
Go Standard Managed VM Runtime
The standard runtime VM example is in the standard/
subdirectory. It uses
the google.golang.org/appengine
package. It passes control to the standard
library by invoking appengine.Main().
The custom runtime VM example is in the custom/
subdirectory. It does NOT use
the google.golang.org/appengine
package.