X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Fxapp.go;h=69d29649179c322b551bd03283ecddf0165b0f25;hb=refs%2Fchanges%2F08%2F708%2F1;hp=c51e0ac5bee305ca8f76bae1e7473300961a235b;hpb=775722c877ef7110cdb4e992f5c216e0e03775c4;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/xapp.go b/pkg/xapp/xapp.go index c51e0ac..69d2964 100755 --- a/pkg/xapp/xapp.go +++ b/pkg/xapp/xapp.go @@ -25,12 +25,13 @@ import ( "net/http" ) -type ReadyCB func() +type ReadyCB func(interface{}) var ( // XApp is an application instance Rmr *RMRClient Sdl *SDLClient + UeNib *UENIBClient Rnib *RNIBClient Resource *Router Metric *Metrics @@ -42,8 +43,8 @@ func IsReady() bool { return Rmr.IsReady() && Sdl.IsReady() } -func SetReadyCB(cb ReadyCB) { - Rmr.SetReadyCB(cb) +func SetReadyCB(cb ReadyCB, params interface{}) { + Rmr.SetReadyCB(cb, params) } func init() { @@ -55,6 +56,7 @@ func init() { Config = Configurator{} Metric = NewMetrics(viper.GetString("metrics.url"), viper.GetString("metrics.namespace"), Resource.router) Rmr = NewRMRClient() + UeNib = NewUENIBClient() if viper.IsSet("db.namespaces") { namespaces := viper.GetStringSlice("db.namespaces")