From: Mohamed Abukar Date: Mon, 7 Oct 2019 06:42:42 +0000 (+0300) Subject: Added more GET functions for viper X-Git-Tag: v0.0.16^0 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F1077%2F1;p=ric-plt%2Fxapp-frame.git Added more GET functions for viper Author: Radhakrishnan Anand Change-Id: I35501fcbfc976b054a2d07039010d2e9c00a33c1 Signed-off-by: Mohamed Abukar --- diff --git a/pkg/xapp/config.go b/pkg/xapp/config.go index 1f90a1a..404a9b9 100755 --- a/pkg/xapp/config.go +++ b/pkg/xapp/config.go @@ -88,3 +88,15 @@ func (*Configurator) GetUint32(key string) uint32 { func (*Configurator) GetBool(key string) bool { return viper.GetBool(key) } + +func (*Configurator) Get(key string) interface{} { + return viper.Get(key) +} + +func (*Configurator) GetStringSlice(key string) []string { + return viper.GetStringSlice(key) +} + +func (*Configurator) GetStringMap(key string) map[string]interface{} { + return viper.GetStringMap(key) +} \ No newline at end of file