Skip to content
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

refactor: split config #236

Merged
merged 54 commits into from
Apr 4, 2022
Merged

refactor: split config #236

merged 54 commits into from
Apr 4, 2022

Conversation

deryrahman
Copy link
Member

@deryrahman deryrahman commented Mar 23, 2022

  • implement LoadClientConfig
  • implement LoadServerConfig
  • refactor config load in the corresponding command
  • add config field validation using ozzo-validation
  • refactor config loader in main.go

@deryrahman deryrahman marked this pull request as ready for review March 24, 2022 09:39
@deryrahman deryrahman linked an issue Mar 24, 2022 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Mar 24, 2022

Pull Request Test Coverage Report for Build 2088475487

  • 111 of 137 (81.02%) changed or added relevant lines in 6 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.07%) to 74.405%

Changes Missing Coverage Covered Lines Changed/Added Lines %
config/telemetry.go 0 1 0.0%
config/loader.go 64 69 92.75%
config/validation.go 40 49 81.63%
config/config_client.go 0 11 0.0%
Files with Coverage Reduction New Missed Lines %
config/loader.go 1 92.68%
config/config.go 2 0%
Totals Coverage Status
Change from base Build 2088084344: 0.07%
Covered Lines: 5596
Relevant Lines: 7521

💛 - Coveralls

config/config_server.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
config/loader.go Outdated Show resolved Hide resolved
config/loader.go Outdated Show resolved Hide resolved
cmd/serve.go Outdated Show resolved Hide resolved
config/validation.go Outdated Show resolved Hide resolved
cmd/serve.go Outdated Show resolved Hide resolved
cmd/serve.go Outdated Show resolved Hide resolved
cmd/serve.go Outdated Show resolved Hide resolved
cmd/serve.go Outdated Show resolved Hide resolved
cmd/admin.go Show resolved Hide resolved
cmd/backup_create.go Outdated Show resolved Hide resolved
cmd/extension.go Outdated Show resolved Hide resolved
cmd/job_create.go Show resolved Hide resolved
cmd/resource.go Show resolved Hide resolved
cmd/secret.go Show resolved Hide resolved
cmd/version.go Show resolved Hide resolved
config/config_server.go Outdated Show resolved Hide resolved
config/loader.go Outdated Show resolved Hide resolved
config/validation.go Outdated Show resolved Hide resolved
@deryrahman deryrahman merged commit eb9676a into main Apr 4, 2022
@deryrahman deryrahman deleted the split-config branch April 4, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split the config for server and client
5 participants