-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add skeleton of a config #2
Conversation
Took way longer than it should had because I was researching exisiting options. As it turns out, nothing nice exists that would handle: - Multiple overridiable config files - Defaults provided in a struct - Output in a struct License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
@magik6k how would you wire in config.Root to api server? |
We shouldn't mix config into the DI stuff, there was a discussion on this in go-ipfs and we decided that it should be kept separate (mixing those makes life harder, especially when reading the code). I'll handle this |
e7e46b3
to
700cb18
Compare
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty straightforward (minus the DI magic). I'd like to use json for the config files, but don't let that block us
# This is the 1st commit message: WIP: random beacon interface Signed-off-by: Jakub Sztandera <[email protected]> # The commit message #2 will be skipped: # add code i forgot to add # # Signed-off-by: Jakub Sztandera <[email protected]>
ticket-acquiring function takes tipset identifier
…on-entropypool-8.19.1 Ntwk calibration entropypool 8.19.1
Took way longer than it should have because I was researching existing
options.
As it turns out, nothing nice exists that would handle:
This settles for much less, just TOML and no overrides apart from default.