config

package
v1.94.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RendererVersion = "v0.2.0"

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"`
	FeedbackAPIURL                string        `envconfig:"FEEDBACK_API_URL"`
	GracefulShutdownTimeout       time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"`
	HealthCheckCriticalTimeout    time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"`
	HealthCheckInterval           time.Duration `envconfig:"HEALTHCHECK_INTERVAL"`
	IsPublishing                  bool          `envconfig:"IS_PUBLISHING"`
	OTBatchTimeout                time.Duration `envconfig:"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"`
	AuthConfig                    *authorisation.Config
}

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