Don't return unnecessary data

This commit is contained in:
TwinProduction 2020-11-30 09:40:57 -05:00
parent d58a256628
commit afdbb1ea77

View File

@ -10,7 +10,7 @@ type Result struct {
HTTPStatus int `json:"status"` HTTPStatus int `json:"status"`
// DNSRCode is the response code of a DNS query in a human readable format // DNSRCode is the response code of a DNS query in a human readable format
DNSRCode string `json:"dns-rcode"` DNSRCode string `json:"-"`
// Body is the response body // Body is the response body
Body []byte `json:"-"` Body []byte `json:"-"`
@ -40,5 +40,5 @@ type Result struct {
Timestamp time.Time `json:"timestamp"` Timestamp time.Time `json:"timestamp"`
// CertificateExpiration is the duration before the certificate expires // CertificateExpiration is the duration before the certificate expires
CertificateExpiration time.Duration `json:"certificate-expiration,omitempty"` CertificateExpiration time.Duration `json:"-"`
} }