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
RIC-79 intial implementation to fetch subscriptions via rest
[ric-plt/submgr.git]
/
pkg
/
control
/
types.go
diff --git
a/pkg/control/types.go
b/pkg/control/types.go
index
ab62153
..
5408f48
100644
(file)
--- a/
pkg/control/types.go
+++ b/
pkg/control/types.go
@@
-86,12
+86,17
@@
type RmrEndpointList struct {
}
func (eplist *RmrEndpointList) String() string {
}
func (eplist *RmrEndpointList) String() string {
+ valuesText := eplist.StringList()
+ return strings.Join(valuesText, ",")
+}
+
+func (eplist *RmrEndpointList) StringList() []string {
tmpList := eplist.Endpoints
valuesText := []string{}
for i := range tmpList {
valuesText = append(valuesText, tmpList[i].String())
}
tmpList := eplist.Endpoints
valuesText := []string{}
for i := range tmpList {
valuesText = append(valuesText, tmpList[i].String())
}
- return
strings.Join(valuesText, ",")
+ return
valuesText
}
func (eplist *RmrEndpointList) Size() int {
}
func (eplist *RmrEndpointList) Size() int {