Package standard exposes a gaemiddleware Environment for Classic AppEngine.
Base returns a middleware chain to use for all GAE requests.
This middleware chain installs prod GAE services into the request context (via With), and wraps the request with a panic catcher and monitoring hooks.
InstallHandlers installs handlers for framework routes using classic production services' default middleware.
See InstallHandlersWithMiddleware for more information.
InstallHandlersWithMiddleware installs handlers for framework routes using classic production services.
These routes are needed for various services provided in Base context to work:
* Authentication related routes (gaeauth) * Settings pages (gaesettings) * Various housekeeping crons (tsmon, gaeconfig) * Warmup (warmup)
They must be installed into a default module, but it is also safe to install them into a non-default module. This may be handy if you want to move cron handlers into a non-default module.
'base' is expected to be an Environment's Base() or its derivative. It must NOT do any interception of requests (e.g. checking and rejecting unauthenticated requests).
With adds various production GAE LUCI services to the context.
Basically, it installs GAE-specific backends and caches for various subsystems to make them work in GAE environment.
One example is a backend for Logging: go.chromium.org/luci/common/logging. Logs emitted through a With() context go to GAE logs.
'Production' here means the services will use real GAE APIs (not mocks or stubs), so With should never be used from unit tests.