X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fsdl%2Fsdl.go;h=88b19e75ad726362581e7420a904feafd8eaaa42;hb=82c726627010dca2467989ec36cac6626ae9943a;hp=b6e0bdec86211f4cb6a308e7afab5219f8ca74c8;hpb=92162653c9741f2417d1a36ec1c211d6863d0a68;p=ric-plt%2Frtmgr.git diff --git a/pkg/sdl/sdl.go b/pkg/sdl/sdl.go index b6e0bde..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,25 +33,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 +61,4 @@ func GetSdl(sdlName string) (SdlEngine, error) { } type Sdl struct { - }