joscha.alisch
10/12/2019, 8:08 AMdata class MongoDBSettings(val host: String, val port: Int)
from the environment variables MONGO_HOST
and MONGO_PORT
.
Would I have them as separate `EnvironmentKey`s and do the mapping outside or is there some lens magic where I can do something like EnvironmentKey.mongoSettings().required("MONGO_HOST", "MONGO_PORT")
?s4nchez
10/12/2019, 8:31 AM