X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Frpe%2Ftypes.go;h=426cc7c93aa80ab6f9a1a58d318cc7a12556a8d2;hb=1892a705147ad415b7c43cc5bb6d8ac4262b3583;hp=b227c0e4f6315ecf2fe247d73a5246dad35ed26d;hpb=16d84d6f7d3489e65e0a83ba9c0d5d62c3914c7f;p=ric-plt%2Frtmgr.git diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index b227c0e..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.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 }