Documentation ¶
Overview ¶
Package internal is supporting code used by server.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudAuthMiddleware ¶
func CloudAuthMiddleware(callers []string, header string, rejected func(*router.Context)) router.MiddlewareChain
CloudAuthMiddleware returns a middleware chain that authorizes requests from Cloud Tasks and Cloud Scheduler.
Checks OpenID Connect tokens have us in the audience, and the email in them is in `callers` list.
If `header` is set, will also accept requests that have this header, regardless of its value. This is used to authorize GAE tasks and crons based on `X-AppEngine-*` headers.
func EnableOpenCensusTracing ¶
func EnableOpenCensusTracing()
EnableOpenCensusTracing installs OpenCensus as a tracing backend for LUCI packages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.