improve: 使用标准项目结构
This commit is contained in:
16
internal/pkg/dns/models.go
Normal file
16
internal/pkg/dns/models.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package dns
|
||||
|
||||
import "net/http"
|
||||
|
||||
type Provider interface {
|
||||
SetDomainRecord(domain, ip string) error
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Provider string
|
||||
IP string
|
||||
Domain string
|
||||
TTL uint
|
||||
Conf map[string]interface{}
|
||||
Http *http.Client
|
||||
}
|
||||
Reference in New Issue
Block a user