X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=64fd15f1fcfe67567dddc8e118fb7cc51da8167c;hb=refs%2Fchanges%2F77%2F2177%2F2;hp=d12233c08107a0fa69daf03579331419d8942f14;hpb=e00186861608731e2390055a0e1b1cf455670508;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index d12233c..64fd15f 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -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