forked from TrueCloudLab/lego
bba134ce87
* feat: add GetOrDefaultXXX methods. * refactor: configuration (alidns). * refactor: configuration (azure). * refactor: configuration (auroradns). * refactor: configuration (bluecat). * refactor: configuration (cloudflare). * refactor: configuration (digitalocean). * refactor: configuration (dnsimple). * refactor: configuration (dnmadeeasy). * refactor: configuration (dnspod). * refactor: configuration (duckdns). * refactor: configuration (dyn). * refactor: configuration (exoscale). * refactor: configuration (fastdns). * refactor: configuration (gandi). * refactor: configuration (gandiv5). * refactor: configuration (gcloud). * refactor: configuration (glesys). * refactor: configuration (godaddy). * refactor: configuration (iij). * refactor: configuration (lightsail). * refactor: configuration (linode). * refactor: configuration (namecheap). * refactor: configuration (namedotcom). * refactor: configuration (netcup). * refactor: configuration (nifcloud). * refactor: configuration (ns1). * refactor: configuration (otc). * refactor: configuration (ovh). * refactor: configuration (pdns). * refactor: configuration (rackspace). * refactor: configuration (rfc2136). * refactor: configuration (route53). * refactor: configuration (sakuracloud). * refactor: configuration (vegadns). * refactor: configuration (vultr).
24 lines
538 B
Go
24 lines
538 B
Go
package glesys
|
|
|
|
// types for JSON method calls, parameters, and responses
|
|
|
|
type addRecordRequest struct {
|
|
DomainName string `json:"domainname"`
|
|
Host string `json:"host"`
|
|
Type string `json:"type"`
|
|
Data string `json:"data"`
|
|
TTL int `json:"ttl,omitempty"`
|
|
}
|
|
|
|
type deleteRecordRequest struct {
|
|
RecordID int `json:"recordid"`
|
|
}
|
|
|
|
type responseStruct struct {
|
|
Response struct {
|
|
Status struct {
|
|
Code int `json:"code"`
|
|
} `json:"status"`
|
|
Record deleteRecordRequest `json:"record"`
|
|
} `json:"response"`
|
|
}
|