From a44f87fbd19b1f9e2d99fbf1aefb91f13ebff6e3 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 16 May 2022 15:56:38 +0700 Subject: lib/dns: disable JSON marshaling Zone Records field On service that manage many zones, providing an API to fetch list of zones only will return large payload if we include the Records field in the response. So, it is recommended to provide another API to fetch the records on specific zone. --- lib/dns/zone.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/zone.go b/lib/dns/zone.go index f99175cd..e1e2a3f4 100644 --- a/lib/dns/zone.go +++ b/lib/dns/zone.go @@ -18,8 +18,8 @@ import ( // Zone represent a group of domain names shared a single root domain. // A Zone contains at least one SOA record. type Zone struct { - Records ZoneRecords - Path string `json:"-"` + Records ZoneRecords `json:"-"` + Path string `json:"-"` Name string messages []*Message SOA RDataSOA -- cgit v1.3