improve: 修改 ddns 包依赖结构
This commit is contained in:
19
dns/models.go
Normal file
19
dns/models.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package dns
|
||||
|
||||
import "net/http"
|
||||
|
||||
type Provider interface {
|
||||
SetDomainRecord(domain, ip string) error
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Provider string
|
||||
IP string
|
||||
Conf map[string]interface{}
|
||||
Http *http.Client
|
||||
}
|
||||
|
||||
type BasicConfig struct {
|
||||
Domain string `mapstructure:"domain"`
|
||||
Other map[string]interface{} `mapstructure:",remain"`
|
||||
}
|
||||
Reference in New Issue
Block a user