1
0

record.go 629 B

123456789101112131415161718192021222324252627282930
  1. package dns
  2. import "encoding/json"
  3. //
  4. //you can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/enum-type&record-format
  5. const (
  6. ARecord = "A"
  7. NSRecord = "NS"
  8. MXRecord = "MX"
  9. TXTRecord = "TXT"
  10. CNAMERecord = "CNAME"
  11. SRVRecord = "SRV"
  12. AAAARecord = "AAAA"
  13. RedirectURLRecord = "REDIRECT_URL"
  14. ForwordURLRecord = "FORWORD_URL"
  15. )
  16. type RecordType struct {
  17. DomainName string
  18. RecordId string
  19. RR string
  20. Type string
  21. Value string
  22. TTL json.Number
  23. Priority json.Number
  24. Line string
  25. Status string
  26. Locked bool
  27. }