Adding ServiceName to ServiceNode to simplify

This commit is contained in:
Armon Dadgar 2014-01-08 10:29:29 -08:00
parent e3ddf8fa00
commit f3788b0472

View File

@ -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