Added RSM platform component routes and xApp Manager interface changes
[ric-plt/rtmgr.git] / pkg / sdl / sdl.go
index b6e0bde..f7d1bc4 100644 (file)
@@ -29,25 +29,25 @@ import (
 )
 
 var (
-       SupportedSdls = []*SdlEngineConfig{
-               &SdlEngineConfig{
-                       Name:     "file",
-                       Version:  "v1",
-                       Protocol: "rawfile",
-                       Instance: NewFile(),
+       SupportedSdls = []*EngineConfig{
+               {
+                       Name:        "file",
+                       Version:     "v1",
+                       Protocol:    "rawfile",
+                       Instance:    NewFile(),
                        IsAvailable: true,
                },
-               &SdlEngineConfig{
-                       Name:     "redis",
-                       Version:  "v1",
-                       Protocol: "ndsl",
-                       Instance: nil,
+               {
+                       Name:        "redis",
+                       Version:     "v1",
+                       Protocol:    "ndsl",
+                       Instance:    nil,
                        IsAvailable: false,
                },
        }
 )
 
-func GetSdl(sdlName string) (SdlEngine, error) {
+func GetSdl(sdlName string) (Engine, error) {
        for _, sdl := range SupportedSdls {
                if sdl.Name == sdlName && sdl.IsAvailable {
                        return sdl.Instance, nil
@@ -57,5 +57,4 @@ func GetSdl(sdlName string) (SdlEngine, error) {
 }
 
 type Sdl struct {
-
 }