X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=22c8bc47756da68379fdba60dae587f258b6ef98;hb=HEAD;hp=0123357b858f3cb91add939b1df168df55a609c7;hpb=f682ace08a827bd260e4905b5ee1bddacf01c6e0;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index 0123357..22c8bc4 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -23,6 +23,7 @@ import ( "time" "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap" + "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" ) //----------------------------------------------------------------------------- @@ -37,11 +38,11 @@ func (rid *RequestId) String() string { } type Sdlnterface interface { - Set(pairs ...interface{}) error - Get(keys []string) (map[string]interface{}, error) - GetAll() ([]string, error) - Remove(keys []string) error - RemoveAll() error + Set(ns string, pairs ...interface{}) error + Get(ns string, keys []string) (map[string]interface{}, error) + GetAll(ns string) ([]string, error) + Remove(ns string, keys []string) error + RemoveAll(ns string) error } type E2SubscriptionDirectives struct { @@ -71,3 +72,10 @@ func (e *ErrorInfo) SetInfo(errorCause string, errorSource string, timeoutType s e.ErrorSource = errorSource e.TimeoutType = timeoutType } + +type XappRnibInterface interface { + XappRnibSubscribe(cb func(string, ...string), channel string) error + XappRnibGetListGnbIds() ([]*xapp.RNIBNbIdentity, xapp.RNIBIRNibError) + XappRnibStoreAndPublish(channel string, event string, pairs ...interface{}) error + XappRnibGetNodeb(inventoryName string) (*xapp.RNIBNodebInfo, xapp.RNIBIRNibError) +}