1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Rename provider handles to *Provider (#914)

This commit is contained in:
Tom Limoncelli
2020-10-26 09:25:30 -04:00
committed by GitHub
parent 29c7ff3a05
commit ca30c9c34f
43 changed files with 318 additions and 318 deletions

View File

@@ -7,11 +7,11 @@ import (
"github.com/babolivier/go-doh-client"
)
type api struct {
type dohProvider struct {
host string
}
func (c *api) getNameservers(domain string) ([]string, error) {
func (c *dohProvider) getNameservers(domain string) ([]string, error) {
resolver := doh.Resolver{
Host: c.host,
Class: doh.IN,
@@ -31,6 +31,6 @@ func (c *api) getNameservers(domain string) ([]string, error) {
return ns, nil
}
func (c *api) updateNameservers(ns []string, domain string) error {
func (c *dohProvider) updateNameservers(ns []string, domain string) error {
return fmt.Errorf("DNS-over-HTTPS 'Registrar' is read only, changes must be applied to %s manually", domain)
}