dp-feedback-api

command module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 9 Imported by: 0 modules, 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.

README

dp-feedback-api

This contains the code for the dp feedback api

Getting started

  • Run make debug
Dependencies
  • No further dependencies other than those defined in go.mod
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 Default Description
BIND_ADDR :28600 The host and port to bind to.
FEEDBACK_FROM from@gmail.com Sender email address for feedback.
FEEDBACK_TO to@gmail.com Receiver email address for feedback.
GRACEFUL_SHUTDOWN_TIMEOUT 5s The graceful shutdown timeout in seconds (time.Duration format).
HEALTHCHECK_INTERVAL 30s Time between self-healthchecks (time.Duration format).
HEALTHCHECK_CRITICAL_TIMEOUT 90s Time to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format).
MAIL_ENCRYPTION true Enable email encryption.
MAIL_HOST localhost The host for the mail server.
MAIL_PASSWORD 1025 The password for the mail server user.
MAIL_PORT "" The port for the mail server.
MAIL_USER "" A user on the mail server.
ONS_DOMAIN localhost The address for the environment.
SANITIZE_HTML true Enable HTML sanitization.
SANITIZE_NO_SQL true Enable NO_SQL sanitization.
SANITIZE_SQL true Enable SQL sanitization.
VERSION_PREFIX /v1 The version of the API.
Contributing

See CONTRIBUTING for details.

License

Copyright © 2025, 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
api
features
sdk

Jump to

Keyboard shortcuts

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