X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=64fd15f1fcfe67567dddc8e118fb7cc51da8167c;hb=refs%2Fchanges%2F79%2F2179%2F1;hp=3a9587f2ab2728037f1bc26f89fd34b72114bbd2;hpb=1455c85dea3fba44cdcba8a92864be730691a6ec;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index 3a9587f..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 { @@ -36,15 +36,13 @@ type SubRouteInfo struct { SubID uint16 } -type Action int - -type TransactionKey struct { - SubID uint16 - transType Action +type RmrEndpoint struct { + Addr string // xapp addr + Port uint16 // xapp port } -type Transaction struct { - XappInstanceAddress string - XappPort uint16 - OrigParams *xapp.RMRParams +func (endpoint RmrEndpoint) String() string { + return endpoint.Addr + ":" + strconv.FormatUint(uint64(endpoint.Port), 10) } + +type Action int