Using Cosmo Router's HTTP handler and allowing execution config polling #2822
cyrilc-pro
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am considering the use of Cosmo Router as a library: I start my own HTTP Server and want to plug Cosmo Router HTTP handler into my own endpoint.
I also need to enable execution config polling.
According to the Cosmo Router code, the config polling routine is started within the
core.Router.Start(ctx)function. But this function does not return the HTTP Server and thus does not allow to get a pointer to the HTTP handler.I can think of different options:
core.Router.StartExecutionConfigPolling()that starts the config polling routine, so that I can manually start itcore.Serverin addition to anerrorcore.Router.GetServer()that returns thecore.ServerinterfaceI'd be glad to help in implementing one if these options, but I'd like to hear from you guys, see what you are your preferred option.
Thanks in advance
All reactions