config

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIRouterURL                  string        `envconfig:"API_ROUTER_URL"`
	BindAddr                      string        `envconfig:"BIND_ADDR"`
	CacheNavigationUpdateInterval time.Duration `envconfig:"CACHE_NAVIGATION_UPDATE_INTERVAL"`
	Debug                         bool          `envconfig:"DEBUG"`
	DownloadServiceURL            string        `envconfig:"DOWNLOAD_SERVICE_URL"`
	EnableMultivariate            bool          `envconfig:"ENABLE_MULTIVARIATE"`
	EnableNewNavBar               bool          `envconfig:"ENABLE_NEW_NAV_BAR"`
	EnableProfiler                bool          `envconfig:"ENABLE_PROFILER"`
	GracefulShutdownTimeout       time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"`
	HealthCheckCriticalTimeout    time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"`
	HealthCheckInterval           time.Duration `envconfig:"HEALTHCHECK_INTERVAL"`
	OTBatchTimeout                time.Duration `encconfig:"OTEL_BATCH_TIMEOUT"`
	OTServiceName                 string        `envconfig:"OTEL_SERVICE_NAME"`
	OTExporterOTLPEndpoint        string        `envconfig:"OTEL_EXPORTER_OTLP_ENDPOINT"`
	OtelEnabled                   bool          `envconfig:"OTEL_ENABLED"`
	PatternLibraryAssetsPath      string        `envconfig:"PATTERN_LIBRARY_ASSETS_PATH"`
	PprofToken                    string        `envconfig:"PPROF_TOKEN" json:"-"`
	SiteDomain                    string        `envconfig:"SITE_DOMAIN"`
	SupportedLanguages            []string      `envconfig:"SUPPORTED_LANGUAGES"`
}

Config represents service configuration for dp-frontend-dataset-controller

func Get

func Get() (*Config, error)

Get returns the default config with any modifications through environment variables

Jump to

Keyboard shortcuts

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