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
Add exe chmod to run_rtmgr.sh
[ric-plt/rtmgr.git]
/
pkg
/
rpe
/
types.go
diff --git
a/pkg/rpe/types.go
b/pkg/rpe/types.go
index
69f01c4
..
426cc7c
100644
(file)
--- a/
pkg/rpe/types.go
+++ b/
pkg/rpe/types.go
@@
-24,18
+24,20
@@
package rpe
package rpe
-import "rtmgr"
+import "r
outing-manager/pkg/r
tmgr"
-type generatePolicies func(*[]rtmgr.XApp) (*[]string)
+type generatePolicies func(rtmgr.Endpoints) *[]string
+type getRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable
-type RpeEngine struct {
- Name string
- Version string
- Protocol string
+type RpeEngineConfig struct {
+ Name string
+ Version string
+ Protocol string
+ Instance RpeEngine
+ IsAvailable bool
}
}
-type RpeEngineConfig struct {
- Engine RpeEngine
- GeneratePolicies generatePolicies
- IsAvailable bool
+type RpeEngine interface {
+ GeneratePolicies(rtmgr.Endpoints) *[]string
+ GetRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
}
}