X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=64fd15f1fcfe67567dddc8e118fb7cc51da8167c;hb=0d064ecdb5239a875857b5910f7f6e83f827d7a6;hp=2a4e9d5c158417639190f9a3836b1e12e4c38f12;hpb=fbc56f981b7bd3387f7326401ceccbf31893a2ed;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index 2a4e9d5..64fd15f 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -19,8 +19,30 @@ package control +import ( + "strconv" +) + type RmrDatagram struct { MessageType int SubscriptionId uint16 Payload []byte } + +type SubRouteInfo struct { + Command Action + Address string + Port uint16 + SubID uint16 +} + +type RmrEndpoint struct { + Addr string // xapp addr + Port uint16 // xapp port +} + +func (endpoint RmrEndpoint) String() string { + return endpoint.Addr + ":" + strconv.FormatUint(uint64(endpoint.Port), 10) +} + +type Action int