config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.9.0

type Config struct {
	BindAddr                   string        `envconfig:"BIND_ADDR"`
	BabbageURL                 string        `envconfig:"BABBAGE_URL"`
	RendererURL                string        `envconfig:"RENDERER_URL"`
	CookiesControllerURL       string        `envconfig:"COOKIES_CONTROLLER_URL"`
	CookiesRoutesEnabled       bool          `envconfig:"COOKIES_ROUTES_ENABLED"`
	DatasetRoutesEnabled       bool          `envconfig:"DATASET_ROUTES_ENABLED"`
	DatasetControllerURL       string        `envconfig:"DATASET_CONTROLLER_URL"`
	FilterDatasetControllerURL string        `envconfig:"FILTER_DATASET_CONTROLLER_URL"`
	GeographyControllerURL     string        `envconfig:"GEOGRAPHY_CONTROLLER_URL"`
	GeographyEnabled           bool          `envconfig:"GEOGRAPHY_ENABLED"`
	ZebedeeURL                 string        `envconfig:"ZEBEDEE_URL"`
	DownloaderURL              string        `envconfig:"DOWNLOADER_URL"`
	PatternLibraryAssetsPath   string        `envconfig:"PATTERN_LIBRARY_ASSETS_PATH"`
	SiteDomain                 string        `envconfig:"SITE_DOMAIN"`
	RedirectSecret             string        `envconfig:"REDIRECT_SECRET" json:"-"`
	SQSAnalyticsURL            string        `envconfig:"SQS_ANALYTICS_URL"`
	ContentTypeByteLimit       int           `envconfig:"CONTENT_TYPE_BYTE_LIMIT"`
	HealthckeckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"`
	HealthckeckInterval        time.Duration `envconfig:"HEALTHCHECK_INTERVAL"`
}

Config represents service configuration for dp-frontend-router

func Get added in v1.9.0

func Get() (*Config, error)

Get returns the default config with any modifications made through environment variables

Jump to

Keyboard shortcuts

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