Skip to content

Commit

Permalink
added feeds field to Answer
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsello committed Aug 1, 2024
1 parent 72c28cb commit ed038f3
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 ed038f3

Please sign in to comment.