Release of Routing Manager v0.3.0
[ric-plt/rtmgr.git] / pkg / rpe / types.go
index b227c0e..426cc7c 100644 (file)
 
 package rpe
 
-import "rtmgr"
+import "routing-manager/pkg/rtmgr"
 
 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
 }