Gateway application binary - #996
Conversation
245e031 to
f76e7fe
Compare
| void RunGatewayApplication(const std::string& config_path) | ||
| { | ||
| const auto app_configuration = ParseGatewayConfig(config_path); | ||
| GatewayApplication gateway_app{std::move(app_configuration)}; |
f76e7fe to
5cefa15
Compare
LittleHuba
left a comment
There was a problem hiding this comment.
The general idea to provide an example is very nice.
I'm currently not really happy with the place though.
I think it would make more sense to put this somewhere into the tutorial in its own chapter.
We did not provide an implementation, since the gatewaying logic for VM use cases is quite specific to the hypervisor. But a tutorial chapter on this would help people to implement this for their own hypervisor.
@crimson11 what do you think?
The idea for For the |
5a94682 to
13aaf75
Compare
Add gateway application binary, reusable runner library, and sample config
Add the gateway_application_runner library (RunGatewayApplication() /
SignalHandler()), which owns gateway config parsing plus the
setup/start/wait-for-shutdown sequence. It has no dependency on
main()/argv, so it can be linked into other applications or libraries
outside this repo that want to embed a gateway process.
Add gateway_application_bin, a thin main() that parses the two CLI
args, initializes the mw::com runtime, installs SIGINT/SIGTERM
handlers, and calls into the runner library — the entry point used
within this repo to run a standalone gateway process.
Add sample runtime configuration under gateway_application/etc/
(mw_com config, gateway config, sample transport config, and
logging.json) for both the source and destination gateway roles,
with a README documenting how the files link together and how to
run the pair locally. Interfaces in configuration linked to
score/mw/com/example/com-api-exampleandscore/mw/com/doc/tutorial/chapter_1Issue #387