list domains
This commit is contained in:
parent
2f18893ef2
commit
8498f6f0a7
4 changed files with 146 additions and 10 deletions
|
|
@ -22,3 +22,37 @@ type PingResponse struct {
|
|||
BaseResponse
|
||||
YourIP string `json:"yourIp"`
|
||||
}
|
||||
|
||||
// DomainListAllRequest is used for getting a list of all domains.
|
||||
type DomainListAllRequest struct {
|
||||
BaseRequest
|
||||
Start int `json:"start"`
|
||||
IncludeLabels string `json:"includeLabels,omitempty"`
|
||||
}
|
||||
|
||||
// DomainListAllResponse is the response from the domain list all endpoint.
|
||||
type DomainListAllResponse struct {
|
||||
BaseResponse
|
||||
Domains []Domain `json:"domains"`
|
||||
}
|
||||
|
||||
// Domain represents a single domain returned by domain endpoints.
|
||||
type Domain struct {
|
||||
Domain string `json:"domain"`
|
||||
Status string `json:"status"`
|
||||
TLD string `json:"tld"`
|
||||
CreateDate string `json:"createDate"`
|
||||
ExpireDate string `json:"expireDate"`
|
||||
SecurityLock string `json:"securityLock"`
|
||||
WhoIsPrivacy string `json:"whoisPrivacy"`
|
||||
AutoRenew any `json:"autoRenew"`
|
||||
NotLocal any `json:"notLocal"`
|
||||
Labels []DomainLabel `json:"labels,omitempty"`
|
||||
}
|
||||
|
||||
// DomainLabel represents a label associated with a domain.
|
||||
type DomainLabel struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Color string `json:"color"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue