RICPLT-2571 Make code change for MEID support
[ric-plt/submgr.git] / pkg / control / types.go
index febd41a..64fd15f 100644 (file)
 
 package control
 
+import (
+       "strconv"
+)
+
 type RmrDatagram struct {
        MessageType    int
        SubscriptionId uint16
@@ -36,4 +40,9 @@ 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