From 0874e7e8cd6737681419c1f281cb15c47906158e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcell=20P=C3=BCnk=C3=B6sd?= Date: Mon, 23 Sep 2024 16:28:40 +0200 Subject: [PATCH] added feeds field to Answer (#242) --- rest/model/dns/answer.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rest/model/dns/answer.go b/rest/model/dns/answer.go index e6eef58..b2cd8a5 100644 --- a/rest/model/dns/answer.go +++ b/rest/model/dns/answer.go @@ -10,11 +10,18 @@ import ( "gopkg.in/ns1/ns1-go.v2/rest/model/data" ) +// AnswerFeed wraps the values of an Answer's "feed" attribute +type AnswerFeed struct { + FeedID string `json:"feed"` + SourceID string `json:"source"` +} + // Answer wraps the values of a Record's "filters" attribute type Answer struct { ID string `json:"id,omitempty"` - Meta *data.Meta `json:"meta,omitempty"` + Meta *data.Meta `json:"meta,omitempty"` + Feeds []AnswerFeed `json:"feeds,omitempty"` // Answer response data. eg: // Av4: ["1.1.1.1"]