dp-frontend-cookie-controller

command module
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 19 Imported by: 0

README

Getting started

This project uses go modules, ensure that go version 1.12 or above is in use. If on go 1.12 then ensure the project either resides outside of your GOPATH or GO111MODULE is set to true

  1. Run dis-design-system-go in a separate shell to generate static assets (css/js)
  2. To start the service use make, make debug

Tools

To run some of our tests you will need additional tooling:

Audit

We use dis-vulncheck to do auditing, which you will need to install.

Linting

We use v2 of golangci-lint, which you will need to install.

Configuration

Environment variable Config Description Default
BIND_ADDR BindAddr The Port to run on :24100
SITE_DOMAIN SiteDomain localhost
GRACEFUL_SHUTDOWN_TIMEOUT GracefulShutdownTimeout Time to wait during graceful shutdown 5 seconds
HEALTHCHECK_INTERVAL HealthCheckInterval Interval between health checks 30 seconds
HEALTHCHECK_CRITICAL_TIMEOUT HealthCheckCriticalTimeout Amount of time to pass since last healthy health check to be deemed a critical failure 90 seconds
OTEL_EXPORTER_OTLP_ENDPOINT OTExporterOTLPEndpoint Endpoint for OpenTelemetry service localhost:4317
OTEL_SERVICE_NAME OTServiceName Label of service for OpenTelemetry service dp-frontend-cookie-controller
OTEL_BATCH_TIMEOUT OTBatchTimeout Timeout for OpenTelemetry 5s
OTEL_ENABLED false Feature flag to enable OpenTelemetry

Contributing

See CONTRIBUTING for details.

License

Copyright © 2021, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
assets in locale and templates folders are converted into Go source code with go-bindata the data.go file in this package is auto generated through the generate-dev and generate-prod tasks in the Makefile
assets in locale and templates folders are converted into Go source code with go-bindata the data.go file in this package is auto generated through the generate-dev and generate-prod tasks in the Makefile
Package handlers is a generated GoMock package.
Package handlers is a generated GoMock package.

Jump to

Keyboard shortcuts

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