From 4f0ab6a3760ff092be5cfb235d8d243c74acb13a Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 4 Sep 2024 15:54:49 +0200 Subject: [PATCH] Add GetConfig to entrypoint --- entrypoint.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/entrypoint.go b/entrypoint.go index b620ec5..0834d5c 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -172,6 +172,13 @@ func SetConfig(mongoUrl string, database string, natsUrl string, lokiUrl string, return cfg } +/* GetConfig will get the config +* @return *Config + */ +func GetConfig() *config.Config { + return config.GetConfig() +} + /* GetConfLoader * Get the configuration loader for the application * Parameters: