mirror of
https://github.com/go-acme/lego.git
synced 2024-12-23 09:15:11 +02:00
7c3689d08a
Co-authored-by: FaRzad-845 <f.shami@barox.ir>
32 lines
928 B
Go
32 lines
928 B
Go
package internal
|
|
|
|
import "encoding/json"
|
|
|
|
type apiResponse struct {
|
|
Message string `json:"message"`
|
|
Data json.RawMessage `json:"data"`
|
|
}
|
|
|
|
// DNSRecord a DNS record.
|
|
type DNSRecord struct {
|
|
ID string `json:"id,omitempty"`
|
|
Type string `json:"type"`
|
|
Value interface{} `json:"value,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
TTL int `json:"ttl,omitempty"`
|
|
UpstreamHTTPS string `json:"upstream_https,omitempty"`
|
|
IPFilterMode *IPFilterMode `json:"ip_filter_mode,omitempty"`
|
|
}
|
|
|
|
// TXTRecordValue represents a TXT record value.
|
|
type TXTRecordValue struct {
|
|
Text string `json:"text,omitempty"` // only for TXT Record.
|
|
}
|
|
|
|
// IPFilterMode a DNS ip_filter_mode.
|
|
type IPFilterMode struct {
|
|
Count string `json:"count,omitempty"`
|
|
Order string `json:"order,omitempty"`
|
|
GeoFilter string `json:"geo_filter,omitempty"`
|
|
}
|