Henry
05/07/2020, 8:01 AMfun fetchInternalClientInstance() { ...I need access to application.config in here...}
on a wider point could anyone link me to some resources discussing higher level application architecture with ktor as I'm starting to get beyond what is covered by the Youkube example?David Eriksson
05/07/2020, 12:17 PMHenry
05/07/2020, 12:19 PMDavid Eriksson
05/07/2020, 12:20 PMApplication
you have all its contextmp
05/07/2020, 2:05 PMembeddedServer
in a main method, and then you can do config any way you please. Load from env vars, or property files, or whatever, at startup and distribute the resulting config object(s) as you see fitHenry
05/07/2020, 2:06 PMI think it's a mistake to bolt that sort of lifecycle stuff (reading config out of files) into an HTTP server lib.this is possibly true but I'm seeing what I can do with a pure ktor implementation for now
David Eriksson
05/07/2020, 2:07 PMHenry
05/07/2020, 2:07 PMDavid Eriksson
05/07/2020, 2:08 PMHenry
05/07/2020, 2:08 PMDavid Eriksson
05/07/2020, 2:10 PMHenry
05/07/2020, 2:11 PMmp
05/07/2020, 2:12 PMHenry
05/07/2020, 2:12 PMmp
05/07/2020, 2:12 PMHenry
05/07/2020, 2:12 PMmp
05/07/2020, 2:13 PMHenry
05/07/2020, 2:18 PMmp
05/07/2020, 2:20 PMHenry
05/07/2020, 2:20 PMDavid Eriksson
05/07/2020, 2:24 PM