Code Review
/
ric-plt
/
submgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
RICPLT-2571 Make code change for MEID support
[ric-plt/submgr.git]
/
pkg
/
control
/
types.go
diff --git
a/pkg/control/types.go
b/pkg/control/types.go
index
d12233c
..
64fd15f
100644
(file)
--- a/
pkg/control/types.go
+++ b/
pkg/control/types.go
@@
-20,7
+20,7
@@
package control
import (
package control
import (
- "
gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp
"
+ "
strconv
"
)
type RmrDatagram struct {
)
type RmrDatagram struct {
@@
-29,24
+29,20
@@
type RmrDatagram struct {
Payload []byte
}
Payload []byte
}
-type
s
ubRouteInfo struct {
- Command
Action
- Address
string
- Port
uint16
- SubID
uint16
+type
S
ubRouteInfo 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