Reverting the code after releasing the image
[ric-plt/rtmgr.git] / pkg / sbi / types.go
index b6dfcd5..c0ab373 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).
+
 ==================================================================================
 */
 /*
@@ -26,21 +30,23 @@ package sbi
 
 import "routing-manager/pkg/rtmgr"
 
-type SbiEngineConfig struct {
+type EngineConfig struct {
        Name        string
        Version     string
        Protocol    string
-       Instance    SbiEngine
+       Instance    Engine
        IsAvailable bool
 }
 
-type SbiEngine interface {
+type Engine interface {
        Initialize(string) error
        Terminate() error
        DistributeAll(*[]string) error
        AddEndpoint(*rtmgr.Endpoint) error
        DeleteEndpoint(*rtmgr.Endpoint) error
        UpdateEndpoints(*rtmgr.RicComponents)
+       CreateEndpoint(string) (*rtmgr.Endpoint)
+       DistributeToEp(*[]string, *rtmgr.Endpoint) error
 }
 
 type NngSocket interface {