Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
62704fac46 |
@ -34,16 +34,6 @@ type dnsexitDTO struct {
|
|||||||
Delete *dns.Record `json:"delete,omitempty"`
|
Delete *dns.Record `json:"delete,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func convertInterfaceSliceToStruct(slice []interface{}) *[]dns.Record {
|
|
||||||
var domains []dns.Record
|
|
||||||
|
|
||||||
for k, domain := range slice {
|
|
||||||
fmt.Println(k, domain)
|
|
||||||
}
|
|
||||||
|
|
||||||
return &domains
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *client) AddRecord(rec *dns.Record) (error, *dns.Response) {
|
func (c *client) AddRecord(rec *dns.Record) (error, *dns.Response) {
|
||||||
c.Locker.Lock()
|
c.Locker.Lock()
|
||||||
defer c.Locker.Unlock()
|
defer c.Locker.Unlock()
|
||||||
|
Reference in New Issue
Block a user