package
0.23.0
Repository: https://github.com/onsdigital/dp-topic-api.git
Documentation: pkg.go.dev

# README

Update topic release date

Dependencies

  • No further dependencies other than configuration

Configuration

Environment variableDefaultDescription
MONGODB_BIND_ADDRlocalhost:27017The MongoDB bind address
MONGODB_USERNAMEMongoDB Username
MONGODB_PASSWORDMongoDB Password
MONGODB_DATABASEtopicsThe MongoDB topics database
MONGODB_COLLECTIONSTopicsCollection:topics,ContentCollection:contentMongoDB collections
MONGODB_ENABLE_READ_CONCERNfalseSwitch to use (or not) majority read concern
MONGODB_ENABLE_WRITE_CONCERNtrueSwitch to use (or not) majority write concern
MONGODB_CONNECT_TIMEOUT5sThe timeout when connecting to MongoDB (time.Duration format)
MONGODB_QUERY_TIMEOUT15sThe timeout for querying MongoDB (time.Duration format)
MONGODB_IS_SSLfalseSwitch to use (or not) TLS when connecting to mongodb