command
module
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Jan 7, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
dp-areas-api
Digital Publishing areas API used to navigate profiles for different geographical areas across the UK
Getting started
Dependencies
- No further dependencies other than those defined in
go.mod
Configuration
| Environment variable |
Default |
Description |
| BIND_ADDR |
:25500 |
The host and port to bind to |
| 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) |
| MONGODB_AREAS_DATABASE |
areas |
The MongoDB areas database |
| MONGODB_AREAS_COLLECTION |
areas |
The MongoDB areas collection |
| MONGODB_USERNAME |
test |
The MongoDB Username |
| MONGODB_PASSWORD |
test |
The MongoDB Password |
| MONGODB_IS_SSL |
false |
is SSL enabled for mongo server |
| DEFAULT_LIMIT |
20 |
Default limit for pagination |
| DEFAULT_OFFSET |
0 |
Default offset for pagination |
| DEFAULT_MAXIMUM_LIMIT |
1000 |
Default maximum limit for pagination |
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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.