mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-08 12:38:13 -05:00
![Darc Z](/assets/img/avatar_default.png)
* fix: webhook retry logic fix: adjust record type based on ipv4 ipv6 refract: move ddns providers to a new module * refract: move ddns module to pkg/
15 lines
245 B
Go
15 lines
245 B
Go
package ddns
|
|
|
|
type DomainConfig struct {
|
|
EnableIPv4 bool
|
|
EnableIpv6 bool
|
|
FullDomain string
|
|
Ipv4Addr string
|
|
Ipv6Addr string
|
|
}
|
|
|
|
type Provider interface {
|
|
// UpdateDomain Return is updated
|
|
UpdateDomain(domainConfig *DomainConfig) bool
|
|
}
|