Skip to content

Commit

Permalink
feat: add touched to rrset
Browse files Browse the repository at this point in the history
  • Loading branch information
cgroschupp committed Nov 26, 2024
1 parent 4e2e14e commit 56237ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions records.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type RRSet struct {
Records []string `json:"records"`
TTL int `json:"ttl,omitempty"`
Created *time.Time `json:"created,omitempty"`
Touched *time.Time `json:"touched,omitempty"`
}

// RRSetFilter a RRsets filter.
Expand Down
1 change: 1 addition & 0 deletions records_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func TestRecordsService_Bulk(t *testing.T) {
Records: []string{`"txt"`},
TTL: 300,
Created: mustParseTime("2020-05-06T11:46:07.641885Z"),
Touched: mustParseTime("2020-05-06T11:46:07.641885Z"),
}}

for _, method := range []string{http.MethodPost, http.MethodPut, http.MethodPatch} {
Expand Down

0 comments on commit 56237ab

Please sign in to comment.