add endpoint data for consul registry
This commit is contained in:
@@ -42,6 +42,7 @@ func (cw *consulWatcher) serviceHandler(idx uint64, data interface{}) {
|
||||
cs := &Service{}
|
||||
|
||||
for _, e := range entries {
|
||||
cs.Endpoints = decodeEndpoints(e.Service.Tags)
|
||||
cs.Name = e.Service.Service
|
||||
cs.Nodes = append(cs.Nodes, &Node{
|
||||
Id: e.Service.ID,
|
||||
|
||||
Reference in New Issue
Block a user