mirror of
https://github.com/openfaas/faas.git
synced 2025-06-12 18:26:49 +00:00
add docs for GatewayConfig like WatchdogConfig
Signed-off-by: Elliott Beach <elliott2.71828@gmail.com>
This commit is contained in:
parent
faf7f31a58
commit
06f0a2c953
@ -102,12 +102,26 @@ func (ReadConfig) Read(hasEnv HasEnv) GatewayConfig {
|
|||||||
|
|
||||||
// GatewayConfig for the process.
|
// GatewayConfig for the process.
|
||||||
type GatewayConfig struct {
|
type GatewayConfig struct {
|
||||||
|
|
||||||
|
// HTTP timeout for reading a request from clients.
|
||||||
ReadTimeout time.Duration
|
ReadTimeout time.Duration
|
||||||
|
|
||||||
|
// HTTP timeout for writing a response from functions.
|
||||||
WriteTimeout time.Duration
|
WriteTimeout time.Duration
|
||||||
|
|
||||||
|
// URL for alternate functions provider.
|
||||||
FunctionsProviderURL *url.URL
|
FunctionsProviderURL *url.URL
|
||||||
|
|
||||||
|
// Address of the NATS service. Required for async mode.
|
||||||
NATSAddress *string
|
NATSAddress *string
|
||||||
|
|
||||||
|
// Port of the NATS Service. Required for async mode.
|
||||||
NATSPort *int
|
NATSPort *int
|
||||||
|
|
||||||
|
// Host to connect to Prometheus.
|
||||||
PrometheusHost string
|
PrometheusHost string
|
||||||
|
|
||||||
|
// Port to connect to Prometheus.
|
||||||
PrometheusPort int
|
PrometheusPort int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user