Add route for e2nodeConfigUpdate
[ric-plt/rtmgr.git] / pkg / sbi / types.go
index 357d87c..094a8ad 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.
    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).
+
 ==================================================================================
 */
 /*
   Mnemonic:    sbi/types.go
 ==================================================================================
 */
 /*
   Mnemonic:    sbi/types.go
-  Abstract:    Containes SBI (SouthBound Interface) specific types
+  Abstract:    Contains SBI (SouthBound Interface) specific types
   Date:                16 March 2019
 */
 
   Date:                16 March 2019
 */
 
@@ -26,28 +30,31 @@ package sbi
 
 import "routing-manager/pkg/rtmgr"
 
 
 import "routing-manager/pkg/rtmgr"
 
-type SbiEngineConfig struct {
-       Name     string
-       Version  string
-  Protocol string
-  Instance SbiEngine
-  IsAvailable bool
+type EngineConfig struct {
+       Name        string
+       Version     string
+       Protocol    string
+       Instance    Engine
+       IsAvailable bool
 }
 
 }
 
-type SbiEngine interface {
-  Initialize(string) error
-  Terminate() error
-  DistributeAll(*[]string) error
-  AddEndpoint(*rtmgr.Endpoint) error
-  DeleteEndpoint(*rtmgr.Endpoint) error
-  UpdateEndpoints(*rtmgr.RicComponents)
+type Engine interface {
+       Initialize(string) error
+       Terminate() error
+       DistributeAll(*[]string) error
+       AddEndpoint(*rtmgr.Endpoint) error
+       DeleteEndpoint(*rtmgr.Endpoint) error
+       UpdateEndpoints(*rtmgr.RicComponents)
+       CheckEndpoint(string) *rtmgr.Endpoint
+       CreateEndpoint(string) (*string, int)
+       DistributeToEp(*[]string, string, int) error
 }
 
 }
 
-type NngSocket interface {
+/*type NngSocket interface {
        Listen(string) error
        Send([]byte) error
        Listen(string) error
        Send([]byte) error
-  Close() error
-  DialOptions(string, map[string]interface{}) error
+       Close() error
+       DialOptions(string, map[string]interface{}) error
 }
 
 }
 
-type CreateNewNngSocketHandler func() (NngSocket,error)
+type CreateNewNngSocketHandler func() (NngSocket, error)*/