wundernodeconfig

package
v0.109.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsConfig

type AnalyticsConfig struct {
	MetricsURL           string `envconfig:"analytics_metrics_url" default:"https://api.wundergraph.com/wundernode/metrics"`
	SendDataUsageMetrics bool   `envconfig:"analytics_send_data_usage_metrics" default:"false"`
}

type Config

type Config struct {
	LoadConfig *LoadConfig
	Server     *ServerConfig
	Analytics  *AnalyticsConfig
}

func Load

func Load(production bool) (*Config, error)

type LoadConfig

type LoadConfig struct {
	URL             string        `envconfig:"load_config_url" default:"https://api.wundergraph.com"`
	BearerToken     string        `envconfig:"load_config_token" required:"false"`
	PollingInterval time.Duration `envconfig:"load_config_polling_interval" default:"10s"`
}

type ServerConfig

type ServerConfig struct {
	ListenAddr string `envconfig:"server_listen_addr" default:"localhost:443"`
	ProxyProto bool   `envconfig:"server_proxy_proto" default:"true"`
	ListenTLS  bool   `envconfig:"listen_tls" default:"true"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL