Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEnableSearchABTest ¶ added in v1.32.0
IsEnableSearchABTest checks whether ab test is enabled and that percentage is a sensible int value
func IsEnabledRelCalABTest ¶ added in v1.51.0
IsEnabledRelCalABTest checks whether ab test is enabled and that percentage is a sensible int value
Types ¶
type Config ¶ added in v1.9.0
type Config struct { AWS AWS APIRouterURL string `envconfig:"API_ROUTER_URL"` AreaProfilesControllerURL string `envconfig:"AREA_PROFILE_CONTROLLER_URL"` AreaProfilesRoutesEnabled bool `envconfig:"AREA_PROFILE_ROUTES_ENABLED"` BabbageURL string `envconfig:"BABBAGE_URL"` BindAddr string `envconfig:"BIND_ADDR"` CensusAtlasRoutesEnabled bool `envconfig:"CENSUS_ATLAS_ROUTES_ENABLED"` CensusAtlasURL string `envconfig:"CENSUS_ATLAS_URL"` ContentTypeByteLimit int `envconfig:"CONTENT_TYPE_BYTE_LIMIT"` CookiesControllerURL string `envconfig:"COOKIES_CONTROLLER_URL"` DatasetControllerURL string `envconfig:"DATASET_CONTROLLER_URL"` DownloaderURL string `envconfig:"DOWNLOADER_URL"` EnableReleaseCalendarABTest bool `envconfig:"ENABLE_RELEASE_CALENDAR_AB_TEST"` EnableSearchABTest bool `envconfig:"ENABLE_SEARCH_AB_TEST"` FeedbackControllerURL string `envconfig:"FEEDBACK_CONTROLLER_URL"` FeedbackEnabled bool `envconfig:"FEEDBACK_ENABLED"` FilterDatasetControllerURL string `envconfig:"FILTER_DATASET_CONTROLLER_URL"` FilterFlexDatasetServiceURL string `envconfig:"FILTER_FLEX_DATASET_SERVICE_URL"` FilterFlexRoutesEnabled bool `envconfig:"FILTER_FLEX_ROUTES_ENABLED"` GeographyControllerURL string `envconfig:"GEOGRAPHY_CONTROLLER_URL"` GeographyEnabled bool `envconfig:"GEOGRAPHY_ENABLED"` HealthcheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"` HealthcheckInterval time.Duration `envconfig:"HEALTHCHECK_INTERVAL"` HomepageControllerURL string `envconfig:"HOMEPAGE_CONTROLLER_URL"` InteractivesControllerURL string `envconfig:"INTERACTIVES_CONTROLLER_URL"` InteractivesRoutesEnabled bool `envconfig:"INTERACTIVES_ROUTES_ENABLED"` LegacySearchRedirectsEnabled bool `envconfig:"LEGACY_SEARCH_REDIRECTS_ENABLED"` NewDatasetRoutingEnabled bool `envconfig:"NEW_DATASET_ROUTING_ENABLED"` PatternLibraryAssetsPath string `envconfig:"PATTERN_LIBRARY_ASSETS_PATH"` ProxyTimeout time.Duration `envconfig:"PROXY_TIMEOUT"` RedirectSecret string `envconfig:"REDIRECT_SECRET" json:"-"` ReleaseCalendarControllerURL string `envconfig:"RELEASE_CALENDAR_CONTROLLER_URL"` ReleaseCalendarEnabled bool `envconfig:"RELEASE_CALENDAR_ENABLED"` ReleaseCalendarRoutePrefix string `envconfig:"RELEASE_CALENDAR_ROUTE_PREFIX"` ReleaseCalendarABTestPercentage int `envconfig:"RELEASE_CALENDAR_AB_TEST_PERCENTAGE"` RendererURL string `envconfig:"RENDERER_URL"` SearchABTestPercentage int `envconfig:"SEARCH_AB_TEST_PERCENTAGE"` SearchControllerURL string `envconfig:"SEARCH_CONTROLLER_URL"` SearchRoutesEnabled bool `envconfig:"SEARCH_ROUTES_ENABLED"` SiteDomain string `envconfig:"SITE_DOMAIN"` SQSAnalyticsURL string `envconfig:"SQS_ANALYTICS_URL"` ZebedeeRequestMaximumRetries int `envconfig:"ZEBEDEE_REQUEST_MAXIMUM_RETRIES"` ZebedeeRequestMaximumTimeoutSeconds time.Duration `envconfig:"ZEBEDEE_REQUEST_TIMEOUT_SECONDS"` }
Config represents service configuration for dp-frontend-router
Click to show internal directories.
Click to hide internal directories.