Debian Codegraph @

dns/DeleteDomain.go

raw symbols SCIP
1 package dns
2
3 import (
4 "log"
5
6 "github.com/denverdino/aliyungo/common"
7 )
8
9 type DeleteDomainArgs struct {
10 DomainName string
11 }
12
13 type DeleteDomainResponse struct {
14 common.Response
15 DomainName string
16 }
17
18 // DeleteDomain
19 //
20 // You can read doc at https://help.aliyun.com/document_detail/29750.html?spm=5176.doc29766.6.593.eELaZ7
21 func (client *Client) DeleteDomain(args *DeleteDomainArgs) (response *DeleteDomainResponse, err error) {
22 action := "DeleteDomain"
23 response = &DeleteDomainResponse{}
24 err = client.Invoke(action, args, response)
25 if err == nil {
26 return response, nil
27 } else {
28 log.Printf("%s error, %v", action, err)
29 return response, err
30 }
31 }