# Functions
GetReadyChannel returns a channel which will notify when the server is ready.
GetServerPort returns the actual port used by the REST API.
RunServer starts our REST API.
StopServer is in charge of stopping the REST API.
WithAdditionalGRPCOpts is an option to add an additional gRPC dial options in the REST server communication to the backend.
WithAdditionalHandler is an option to add an additional handler func in the REST server.
WithAllowedHeaders is an option to supply allowed headers in CORS.
WithAllowedMethods is an option to supply allowed methods in CORS.
WithAllowedOrigins is an option to supply allowed origins in CORS.
WithEmbeddedOAuth2Server configures our REST gateway to include an embedded OAuth 2.0 authorization server with the given parameters.
# Variables
DefaultAllowedHeaders contains sensible defaults for the Access-Control-Allow-Headers header.
DefaultAllowedMethods contains sensible defaults for the Access-Control-Allow-Methods header.
DefaultAllowedOrigins contains a nil slice, as per default, no origins are allowed.
DefaultAPIHTTPPort specifies the default port for the REST API.
# Type aliases
ServerConfigOption represents functional-style options to modify the server configuration in RunServer.