RICPLT-2803 Test Subscription Failure message handling, RICPLT-2804 Test Subscription...
[ric-plt/submgr.git] / pkg / control / types.go
index 83312d8..64fd15f 100644 (file)
 
 package control
 
+import (
+       "strconv"
+)
+
 type RmrDatagram struct {
        MessageType    int
        SubscriptionId uint16
@@ -32,4 +36,13 @@ type SubRouteInfo struct {
        SubID   uint16
 }
 
+type RmrEndpoint struct {
+       Addr string // xapp addr
+       Port uint16 // xapp port
+}
+
+func (endpoint RmrEndpoint) String() string {
+       return endpoint.Addr + ":" + strconv.FormatUint(uint64(endpoint.Port), 10)
+}
+
 type Action int