Some more test cases in rtmgr
[ric-plt/rtmgr.git] / pkg / sdl / sdl.go
index 4d3d8d1..88b19e7 100644 (file)
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
+
+   This source code is part of the near-RT RIC (RAN Intelligent Controller)
+   platform project (RICP).
+
 ==================================================================================
 */
 /*
@@ -29,15 +33,15 @@ import (
 )
 
 var (
-       SupportedSdls = []*SdlEngineConfig{
-               &SdlEngineConfig{
+       SupportedSdls = []*EngineConfig{
+               {
                        Name:        "file",
                        Version:     "v1",
                        Protocol:    "rawfile",
                        Instance:    NewFile(),
                        IsAvailable: true,
                },
-               &SdlEngineConfig{
+               {
                        Name:        "redis",
                        Version:     "v1",
                        Protocol:    "ndsl",
@@ -47,7 +51,7 @@ var (
        }
 )
 
-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