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
Fix ENDC_X2_SETUP related routes
[ric-plt/rtmgr.git]
/
pkg
/
rpe
/
types.go
diff --git
a/pkg/rpe/types.go
b/pkg/rpe/types.go
index
69f01c4
..
491d152
100644
(file)
--- a/
pkg/rpe/types.go
+++ b/
pkg/rpe/types.go
@@
-18,24
+18,26
@@
*/
/*
Mnemonic: rpe/types.go
*/
/*
Mnemonic: rpe/types.go
- Abstract: Contain
e
s RPE (Route Policy Engine) specific types
+ Abstract: Contains RPE (Route Policy Engine) specific types
Date: 12 March 2019
*/
package rpe
Date: 12 March 2019
*/
package rpe
-import "rtmgr"
+import "r
outing-manager/pkg/r
tmgr"
-type generatePolicies func(*[]rtmgr.XApp) (*[]string)
+//type generatePolicies func(rtmgr.Endpoints) *[]string
+//type generateRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable
-type RpeEngine struct {
- Name string
- Version string
- Protocol string
+type EngineConfig struct {
+ Name string
+ Version string
+ Protocol string
+ Instance Engine
+ IsAvailable bool
}
}
-type RpeEngineConfig struct {
- Engine RpeEngine
- GeneratePolicies generatePolicies
- IsAvailable bool
+type Engine interface {
+ GeneratePolicies(rtmgr.Endpoints) *[]string
+ GenerateRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
}
}