Subscription manager v0.10.0
[ric-plt/submgr.git] / pkg / control / types.go
index 5f46e65..d12233c 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 Transaction_key struct {
+       SubID      uint16
+       trans_type Action
+}
+
+type Transaction struct {
+//     Xapp_address          string
+       Xapp_instance_address string
+       Xapp_port             uint16
+       Ric_sub_req           []byte
+       Mbuf                  *xapp.RMRMbuf
 }