X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fsdl%2Fsdl.go;h=88b19e75ad726362581e7420a904feafd8eaaa42;hb=505e2497ce651c1127ffbcefe396b3f8c0d0f9dd;hp=4d3d8d13283549c4f9215e08e1251a10cccc278f;hpb=eb2ff0d217caf158dd15424bf70f8aa79c3742b1;p=ric-plt%2Frtmgr.git diff --git a/pkg/sdl/sdl.go b/pkg/sdl/sdl.go index 4d3d8d1..88b19e7 100644 --- a/pkg/sdl/sdl.go +++ b/pkg/sdl/sdl.go @@ -14,6 +14,10 @@ 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