Skip to content

Commit

Permalink
added feeds field to Answer (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsello authored Sep 23, 2024
1 parent 43b1448 commit 0874e7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rest/model/dns/answer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 0874e7e

Please sign in to comment.