From 8d69db7a89b5435ed2731cff5cbff5787379d691 Mon Sep 17 00:00:00 2001 From: aksentyev Date: Tue, 27 Sep 2016 23:59:26 +0300 Subject: [PATCH 1/2] CreateIndex, ModifyIndex added for CatalogService --- api/catalog.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/catalog.go b/api/catalog.go index 337772ec0..7e33bf2f4 100644 --- a/api/catalog.go +++ b/api/catalog.go @@ -7,6 +7,8 @@ type Node struct { } type CatalogService struct { + CreateIndex uint64 + ModifyIndex uint64 Node string Address string TaggedAddresses map[string]string From b17907f06af51d4dca9a5c2f57aa255809d1668e Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 17 Nov 2016 16:38:30 -0800 Subject: [PATCH 2/2] Moves index fields to the bottom of the structure. --- api/catalog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/catalog.go b/api/catalog.go index 7e33bf2f4..5964359eb 100644 --- a/api/catalog.go +++ b/api/catalog.go @@ -7,8 +7,6 @@ type Node struct { } type CatalogService struct { - CreateIndex uint64 - ModifyIndex uint64 Node string Address string TaggedAddresses map[string]string @@ -18,6 +16,8 @@ type CatalogService struct { ServiceTags []string ServicePort int ServiceEnableTagOverride bool + CreateIndex uint64 + ModifyIndex uint64 } type CatalogNode struct {