From ed038f37a8a7274cf7db2ab24f9b306e4c4a38e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcell=20P=C3=BCnk=C3=B6sd?= Date: Thu, 1 Aug 2024 17:44:14 +0200 Subject: [PATCH] added feeds field to Answer --- 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"]