Categorygithub.com/ONSdigital/dp-sessions-api
modulepackage
1.1.0
Repository: https://github.com/onsdigital/dp-sessions-api.git
Documentation: pkg.go.dev

# README

dp-sessions-api

API for Sessions

Getting started

  • Run make debug

Dependencies

  • No further dependencies other than those defined in go.mod

Configuration

Environment variableDefaultDescription
BIND_ADDR:The host and port to bind to
GRACEFUL_SHUTDOWN_TIMEOUT5sThe graceful shutdown timeout in seconds (time.Duration format)
HEALTHCHECK_INTERVAL10sTime between self-healthchecks (time.Duration format)
HEALTHCHECK_CRITICAL_TIMEOUT1mTime to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format)
ZEBEDEE_URLhttp://localhost:8082URL for Zebedee
SERVICE_AUTH_TOKENService Auth token for communicating with Zebedee
ELASTICACHE_ADDRlocalhost:6379Address of Elasticache/Redis
ELASTICACHE_PASSWORDdefaultPassword for Elasticache/Redis
ELASTICACHE_DATABASE0Database for Elasticache/Redis (int format)
ELASTICACHE_TTL30mTime before Elasticache/Redis key expires (time.Duration format)
ENABLE_REDIS_TLS_CONFIGfalseTurn TLS configuration on or off (bool format)

Contributing

See CONTRIBUTING for details.

License

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

Released under MIT license, see LICENSE for details.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

BuildTime represents the time in which the service was built.
GitCommit represents the commit (SHA-1) hash of the service that is running.
Version represents the version of the service that is running.