X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Frpe%2Ftypes.go;h=426cc7c93aa80ab6f9a1a58d318cc7a12556a8d2;hb=refs%2Fchanges%2F54%2F454%2F5;hp=69f01c4c9cabc33790339b8ae89cba107edaef7a;hpb=871fa393844ce1b61b8d5218d27687d9fc05803a;p=ric-plt%2Frtmgr.git diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index 69f01c4..426cc7c 100644 --- a/pkg/rpe/types.go +++ b/pkg/rpe/types.go @@ -24,18 +24,20 @@ package rpe -import "rtmgr" +import "routing-manager/pkg/rtmgr" -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 }