Implement the configuration data management code in modelmgmtservice 86/13286/6
authorgyuyoung <gyoue200125@gmail.com>
Thu, 29 Aug 2024 14:30:58 +0000 (23:30 +0900)
committergyuyoung <gyoue200125@gmail.com>
Tue, 15 Oct 2024 14:04:23 +0000 (23:04 +0900)
commitb420b8a621593e2404e56ab1d59796653d110f2c
tree81b473ad7dc0e92b35993e3cfb1087cf5017d789
parent4fca931bae46ef9221e2005d9ad6d12b19767e35
Implement the configuration data management code in modelmgmtservice

- Add 'config' package for easy and safe handling of configuration data
- Add 'godotenv' library to load environment files(ex, .env)
- Update 'main.go' to utilize the new 'config' package
- Modify env_loader.go to use viper package
- Add new validation layer to check whether config data is valid or not
- Add test codes of config package
- Rebase origin HEAD
- Modify 'validate error msg' to provide user with clear messages

Issue-ID: AIMLFW-147

Change-Id: I3cea95f0d528c27ccf82a802759b965b06afe34d
Signed-off-by: gyuyoung <gyoue200125@gmail.com>
config/config_manager.go [new file with mode: 0644]
config/config_manager_test.go [new file with mode: 0644]
config/data.go [new file with mode: 0644]
config/env_loader.go [new file with mode: 0644]
config/env_loader_test.go [new file with mode: 0644]
config/validator.go [new file with mode: 0644]
config/validator_test.go [new file with mode: 0644]
go.mod
go.sum
main.go