From f3788b0472b0fced6731615540ece4b6feb31636 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 8 Jan 2014 10:29:29 -0800 Subject: [PATCH] Adding ServiceName to ServiceNode to simplify --- consul/structs/structs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consul/structs/structs.go b/consul/structs/structs.go index 714a33fdfe..3db95ab20e 100644 --- a/consul/structs/structs.go +++ b/consul/structs/structs.go @@ -65,6 +65,7 @@ type ServiceNode struct { Node string Address string ServiceID string + ServiceName string ServiceTag string ServicePort int } @@ -85,7 +86,7 @@ type NodeService struct { } type NodeServices struct { Address string - Services map[string]NodeService + Services map[string]*NodeService } // Decode is used to decode a MsgPack encoded object