Skip to content

Commit 0874e7e

Browse files
authored
added feeds field to Answer (#242)
1 parent 43b1448 commit 0874e7e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rest/model/dns/answer.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@ import (
1010
"gopkg.in/ns1/ns1-go.v2/rest/model/data"
1111
)
1212

13+
// AnswerFeed wraps the values of an Answer's "feed" attribute
14+
type AnswerFeed struct {
15+
FeedID string `json:"feed"`
16+
SourceID string `json:"source"`
17+
}
18+
1319
// Answer wraps the values of a Record's "filters" attribute
1420
type Answer struct {
1521
ID string `json:"id,omitempty"`
1622

17-
Meta *data.Meta `json:"meta,omitempty"`
23+
Meta *data.Meta `json:"meta,omitempty"`
24+
Feeds []AnswerFeed `json:"feeds,omitempty"`
1825

1926
// Answer response data. eg:
2027
// Av4: ["1.1.1.1"]

0 commit comments

Comments
 (0)