Code Review
/
ric-plt
/
xapp-frame.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added new implementation for the following feature requests:
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
xapp.go
diff --git
a/pkg/xapp/xapp.go
b/pkg/xapp/xapp.go
index
c51e0ac
..
69d2964
100755
(executable)
--- a/
pkg/xapp/xapp.go
+++ b/
pkg/xapp/xapp.go
@@
-25,12
+25,13
@@
import (
"net/http"
)
"net/http"
)
-type ReadyCB func()
+type ReadyCB func(
interface{}
)
var (
// XApp is an application instance
Rmr *RMRClient
Sdl *SDLClient
var (
// XApp is an application instance
Rmr *RMRClient
Sdl *SDLClient
+ UeNib *UENIBClient
Rnib *RNIBClient
Resource *Router
Metric *Metrics
Rnib *RNIBClient
Resource *Router
Metric *Metrics
@@
-42,8
+43,8
@@
func IsReady() bool {
return Rmr.IsReady() && Sdl.IsReady()
}
return Rmr.IsReady() && Sdl.IsReady()
}
-func SetReadyCB(cb ReadyCB) {
- Rmr.SetReadyCB(cb)
+func SetReadyCB(cb ReadyCB
, params interface{}
) {
+ Rmr.SetReadyCB(cb
, params
)
}
func init() {
}
func init() {
@@
-55,6
+56,7
@@
func init() {
Config = Configurator{}
Metric = NewMetrics(viper.GetString("metrics.url"), viper.GetString("metrics.namespace"), Resource.router)
Rmr = NewRMRClient()
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")
if viper.IsSet("db.namespaces") {
namespaces := viper.GetStringSlice("db.namespaces")