Code Review
/
ric-plt
/
rtmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
code violation - cannot initialize 1 variables with 2 values
[ric-plt/rtmgr.git]
/
pkg
/
nbi
/
types.go
diff --git
a/pkg/nbi/types.go
b/pkg/nbi/types.go
index
0f7fee6
..
722289e
100644
(file)
--- a/
pkg/nbi/types.go
+++ b/
pkg/nbi/types.go
@@
-14,11
+14,16
@@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+
+
+ This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ platform project (RICP).
+
==================================================================================
*/
/*
Mnemonic: nbi.go
==================================================================================
*/
/*
Mnemonic: nbi.go
- Abstract: Contain
e
s NBI (NorthBound Interface) specific types
+ Abstract: Contains NBI (NorthBound Interface) specific types
Date: 12 March 2019
*/
Date: 12 March 2019
*/
@@
-29,23
+34,25
@@
import (
"routing-manager/pkg/rpe"
"routing-manager/pkg/rtmgr"
"routing-manager/pkg/sdl"
"routing-manager/pkg/rpe"
"routing-manager/pkg/rtmgr"
"routing-manager/pkg/sdl"
+ "sync"
)
)
-type FetchAllX
a
ppsHandler func(string) (*[]rtmgr.XApp, error)
+type FetchAllX
A
ppsHandler func(string) (*[]rtmgr.XApp, error)
type RecvXappCallbackDataHandler func(<-chan *models.XappCallbackData) (*[]rtmgr.XApp, error)
type RecvXappCallbackDataHandler func(<-chan *models.XappCallbackData) (*[]rtmgr.XApp, error)
-type LaunchRestHandler func(*string, chan<- *models.XappCallbackData, chan<- *models.XappSubscriptionData, chan<- *models.XappSubscriptionData)
+type RecvNewE2TdataHandler func(<-chan *models.E2tData) (*rtmgr.E2TInstance, string, error)
+type LaunchRestHandler func(*string)
type ProvideXappHandleHandlerImpl func(chan<- *models.XappCallbackData, *models.XappCallbackData) error
type ProvideXappHandleHandlerImpl func(chan<- *models.XappCallbackData, *models.XappCallbackData) error
-type RetrieveStartupDataHandler func(string, string, string, string, s
dl.Sdl
Engine) error
+type RetrieveStartupDataHandler func(string, string, string, string, s
tring, sdl.
Engine) error
-type
Nbi
EngineConfig struct {
+type EngineConfig struct {
Name string
Version string
Protocol string
Name string
Version string
Protocol string
- Instance
Nbi
Engine
+ Instance Engine
IsAvailable bool
}
IsAvailable bool
}
-type
Nbi
Engine interface {
- Initialize(string, string, string, string, s
dl.SdlEngine, rpe.RpeEngine, chan<- bool
) error
+type Engine interface {
+ Initialize(string, string, string, string, s
tring, sdl.Engine, rpe.Engine, *sync.Mutex
) error
Terminate() error
}
Terminate() error
}