RICPLT-2985 Route update via registry/subscription entry
[ric-plt/submgr.git] / pkg / control / types.go
index d12233c..64fd15f 100644 (file)
@@ -20,7 +20,7 @@
 package control
 
 import (
-       "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
+       "strconv"
 )
 
 type RmrDatagram struct {
@@ -29,24 +29,20 @@ type RmrDatagram struct {
        Payload        []byte
 }
 
-type subRouteInfo struct {
-       Command  Action
-       Address  string
-       Port     uint16
-       SubID    uint16
+type SubRouteInfo struct {
+       Command Action
+       Address string
+       Port    uint16
+       SubID   uint16
 }
 
-type Action int
-
-type Transaction_key struct {
-       SubID      uint16
-       trans_type Action
+type RmrEndpoint struct {
+       Addr string // xapp addr
+       Port uint16 // xapp port
 }
 
-type Transaction struct {
-//     Xapp_address          string
-       Xapp_instance_address string
-       Xapp_port             uint16
-       Ric_sub_req           []byte
-       Mbuf                  *xapp.RMRMbuf
+func (endpoint RmrEndpoint) String() string {
+       return endpoint.Addr + ":" + strconv.FormatUint(uint64(endpoint.Port), 10)
 }
+
+type Action int