X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frpe%2Ftypes.go;h=491d15234be55d0722e894314ef2d3ccb6438a7e;hb=refs%2Fchanges%2F55%2F1055%2F1;hp=b227c0e4f6315ecf2fe247d73a5246dad35ed26d;hpb=16d84d6f7d3489e65e0a83ba9c0d5d62c3914c7f;p=ric-plt%2Frtmgr.git diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index b227c0e..491d152 100644 --- a/pkg/rpe/types.go +++ b/pkg/rpe/types.go @@ -18,24 +18,26 @@ */ /* Mnemonic: rpe/types.go - Abstract: Containes RPE (Route Policy Engine) specific types + Abstract: Contains RPE (Route Policy Engine) specific types Date: 12 March 2019 */ package rpe -import "rtmgr" +import "routing-manager/pkg/rtmgr" -type generatePolicies func(rtmgr.Endpoints) *[]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 }