style: rename controllers to login, cancel internal/pkg
This commit is contained in:
21
internal/dns/models.go
Normal file
21
internal/dns/models.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package dns
|
||||
|
||||
import (
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/config"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Provider interface {
|
||||
SetDomainRecord(domain, ip string) error
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Provider string
|
||||
IP string
|
||||
Domain string
|
||||
TTL uint
|
||||
Conf config.DdnsProviderConfigSum
|
||||
Http *http.Client
|
||||
Logger log.FieldLogger
|
||||
}
|
||||
Reference in New Issue
Block a user