From 06f0a2c953eab24335a80fb3b47a606d7ca86b83 Mon Sep 17 00:00:00 2001 From: Elliott Beach Date: Sun, 22 Oct 2017 00:17:18 -0500 Subject: [PATCH] add docs for GatewayConfig like WatchdogConfig Signed-off-by: Elliott Beach --- gateway/types/readconfig.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gateway/types/readconfig.go b/gateway/types/readconfig.go index 3a6ceb4a..0a595cd2 100644 --- a/gateway/types/readconfig.go +++ b/gateway/types/readconfig.go @@ -102,12 +102,26 @@ func (ReadConfig) Read(hasEnv HasEnv) GatewayConfig { // GatewayConfig for the process. type GatewayConfig struct { + + // HTTP timeout for reading a request from clients. ReadTimeout time.Duration + + // HTTP timeout for writing a response from functions. WriteTimeout time.Duration + + // URL for alternate functions provider. FunctionsProviderURL *url.URL + + // Address of the NATS service. Required for async mode. NATSAddress *string + + // Port of the NATS Service. Required for async mode. NATSPort *int + + // Host to connect to Prometheus. PrometheusHost string + + // Port to connect to Prometheus. PrometheusPort int }