Categorygithub.com/ONSdigital/dp-interactives-api
modulepackage
0.0.0-20231107143820-14f90b68fce9
Repository: https://github.com/onsdigital/dp-interactives-api.git
Documentation: pkg.go.dev

# README

dp-interactives-api


:warning: This repository will be archived in November 2023 as it is no longer in development. :warning:


Manages all interactives state and metadata (in persistent store). Talks to dp-interactives-importer via kafka.

Getting started

Dependencies

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

Configuration

Environment variableDefaultDescription
BIND_ADDR27500The host and port to bind to
INTERACTIVES_API_URLhttp://localhost:27500The interactives api url
AWS_REGIONeu-west-1The AWS region
UPLOAD_BUCKET_NAMEdp-interactives-file-uploadsName of the S3 bucket
KAFKA_ADDRlocalhost:9092The address of Kafka brokers (comma-separated values)
KAFKA_VERSION1.0.2The version of Kafka
KAFKA_MAX_BYTES2000000Maximum number of bytes in a kafka message
KAFKA_SEC_PROTOunsetif set to TLS, kafka connections will use TLS [1]
KAFKA_SEC_CLIENT_KEYunsetPEM for the client key [1]
KAFKA_SEC_CLIENT_CERTunsetPEM for the client certificate [1]
KAFKA_SEC_CA_CERTSunsetCA cert chain for the server cert [1]
KAFKA_SEC_SKIP_VERIFYfalseignores server certificate issues if true [1]
MONGODB_BIND_ADDRlocalhost:27017The MongoDB bind address
MONGODB_COLLECTIONinteractivesThe MongoDB interactives database
MONGODB_DATABASEinteractives-apiMongoDB collection
MONGODB_USERNAMEtestMongoDB Username
MONGODB_PASSWORDtestMongoDB Password
MONGODB_IS_SSLfalseis SSL enabled for mongo server
KAFKA_CONSUMER_WORKERS1The maximum number of parallel kafka consumers
INTERACTIVES_GROUPdp-interactives-apiThe consumer group this application uses
ZEBEDEE_URLhttp://localhost:8082The URL of zebedee

License

Copyright © 2022, 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
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.