X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Ftypes.go;h=722289ed8b24b52a4d0f9fbd39e961253e3d6b6d;hb=2c131acf0418c45d9045a6a81baf3e7d047fcb38;hp=78f99a5b70c7fc2f435be76f7964df9b203d156d;hpb=749099bc00ec6cad5da19846e65bd5b4bd9b8de4;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/types.go b/pkg/nbi/types.go index 78f99a5..722289e 100644 --- a/pkg/nbi/types.go +++ b/pkg/nbi/types.go @@ -34,14 +34,15 @@ import ( "routing-manager/pkg/rpe" "routing-manager/pkg/rtmgr" "routing-manager/pkg/sdl" + "sync" ) type FetchAllXAppsHandler func(string) (*[]rtmgr.XApp, error) type RecvXappCallbackDataHandler func(<-chan *models.XappCallbackData) (*[]rtmgr.XApp, error) -type RecvNewE2TdataHandler func(<-chan *models.E2tData) (*rtmgr.E2TInstance, error) -type LaunchRestHandler func(*string, chan<- *models.XappCallbackData, chan<- *models.XappSubscriptionData, chan<- *models.XappSubscriptionData, chan<- *models.E2tData) +type RecvNewE2TdataHandler func(<-chan *models.E2tData) (*rtmgr.E2TInstance, string, error) +type LaunchRestHandler func(*string) type ProvideXappHandleHandlerImpl func(chan<- *models.XappCallbackData, *models.XappCallbackData) error -type RetrieveStartupDataHandler func(string, string, string, string, sdl.Engine) error +type RetrieveStartupDataHandler func(string, string, string, string, string, sdl.Engine) error type EngineConfig struct { Name string @@ -52,6 +53,6 @@ type EngineConfig struct { } type Engine interface { - Initialize(string, string, string, string, sdl.Engine, rpe.Engine, chan<- bool) error + Initialize(string, string, string, string, string, sdl.Engine, rpe.Engine, *sync.Mutex) error Terminate() error }