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-2803 Test Subscription Failure message handling, RICPLT-2804 Test Subscription...
[ric-plt/submgr.git]
/
pkg
/
control
/
types.go
diff --git
a/pkg/control/types.go
b/pkg/control/types.go
index
83312d8
..
64fd15f
100644
(file)
--- a/
pkg/control/types.go
+++ b/
pkg/control/types.go
@@
-19,6
+19,10
@@
package control
package control
+import (
+ "strconv"
+)
+
type RmrDatagram struct {
MessageType int
SubscriptionId uint16
type RmrDatagram struct {
MessageType int
SubscriptionId uint16
@@
-32,4
+36,13
@@
type SubRouteInfo struct {
SubID 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
type Action int