Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudRun ¶
CloudRun starts an HTTP and gRPC server handling requests for all on the same port, determined by the env var $PORT. If no HTTP mux or gRPC server is provided (is nil), one with default routes/services will be started, respectively.
CloudRun() is a helper for servers that run in Google Cloud run, and thus starts a server that supports the following protocols:
✔ grpc ✗ grpc-web via websockets ✗ HTTP 1.1 ✔ HTTP 2.0
TODO(INFRA-211): Merge with above Run() function if possible, and add tests that verify the protocol compatibility table above either way.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.