Refactor app initialization
What does this MR do?
Refactorizes the way how application is initialized.
Why was this MR needed?
- Move binaries sources (
cmd/[binnary-name]/main.go, which is the pattern commonly used for Go apps,
- Move code parts common for
gitlab-runner-helper/main.goto one place:
- Move some code related to application initialization from
apppackage. This is a next step in decomposing the big, messed
helpers/package in more structured and domain oriented parts.
- Prepare a hooks mechanism in
apppackage, to simplify the initialization of apps.
Are there points in the code the reviewer needs to double check?
Built on top of !1020 (merged) so needs to wait for it to be merged This is done
Does this MR meet the acceptance criteria?
- Documentation created/updated
- Added tests for this feature/bug
In case of conflicts with
master- branch was rebased
What are the relevant issue numbers?