From 5db185a7e48ac7227f007ed5207e945dc9ed03e6 Mon Sep 17 00:00:00 2001 From: Hans Hasselberg Date: Thu, 24 Jan 2019 17:05:57 +0100 Subject: [PATCH] do not export that type --- agent/structs/structs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/structs/structs.go b/agent/structs/structs.go index f1d9a55771..038b061dc8 100644 --- a/agent/structs/structs.go +++ b/agent/structs/structs.go @@ -918,7 +918,7 @@ type HealthCheckDefinition struct { } type Alias HealthCheckDefinition -type ExportedHealthCheckDefinition struct { +type exportedHealthCheckDefinition struct { Interval string `json:",omitempty"` Timeout string `json:",omitempty"` DeregisterCriticalServiceAfter string `json:",omitempty"` @@ -926,7 +926,7 @@ type ExportedHealthCheckDefinition struct { } func (d *HealthCheckDefinition) MarshalJSON() ([]byte, error) { - exported := &ExportedHealthCheckDefinition{ + exported := &exportedHealthCheckDefinition{ Alias: (*Alias)(d), } if d.Interval != 0 {