dnscontrol/models/rawrecord.go
Thomas Limoncelli 4b68c79d4f
fixing tests
2025-11-26 23:13:39 -05:00

13 lines
568 B
Go

package models
// RawRecordConfig stores the user-input from dnsconfig.js for a DNS
// Record. This is later processed (in Go) to become a RecordConfig.
// NOTE: Only newer rtypes are processed this way. Eventually the
// legacy types will be converted.
type RawRecordConfig struct {
Type string `json:"type"`
Args []any `json:"args,omitempty"`
Metas []map[string]any `json:"metas,omitempty"`
TTL uint32 `json:"ttl,omitempty"`
FilePos string `json:"filepos"` // Where in the file this record was defined.
}