RType is an interface that defines the methods required for a DNS record type.
| 10 | |
| 11 | // RType is an interface that defines the methods required for a DNS record type. |
| 12 | type RType interface { |
| 13 | // Returns the name of the rtype ("A", "MX", etc.) |
| 14 | Name() string |
| 15 | |
| 16 | // RecordConfig factory. Updates a RecordConfig's fields based on args. |
| 17 | FromArgs(*domaintags.DomainNameVarieties, *models.RecordConfig, []any) error |
| 18 | FromStruct(*domaintags.DomainNameVarieties, *models.RecordConfig, string, any) error |
| 19 | |
| 20 | CopyToLegacyFields(*models.RecordConfig) |
| 21 | CopyFromLegacyFields(*models.RecordConfig) |
| 22 | } |
| 23 | |
| 24 | // Func is a map of registered rtypes. |
| 25 | var Func map[string]RType = map[string]RType{} |
no outgoing calls
no test coverage detected