Upstreaming version 0.10.7
[ric-plt/submgr.git] / pkg / control / types.go
index 5f46e65..3a9587f 100644 (file)
 
 package control
 
-type RmrPayload struct {
-       MessageType int
-       SubscriptionId int
-       Content string 
-}
+import (
+       "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
+)
 
 type RmrDatagram struct {
-  MessageType int
-       SubscriptionId int
-       Payload []byte 
+       MessageType    int
+       SubscriptionId uint16
+       Payload        []byte
+}
+
+type SubRouteInfo struct {
+       Command Action
+       Address string
+       Port    uint16
+       SubID   uint16
+}
+
+type Action int
+
+type TransactionKey struct {
+       SubID     uint16
+       transType Action
+}
+
+type Transaction struct {
+       XappInstanceAddress string
+       XappPort            uint16
+       OrigParams          *xapp.RMRParams
 }