example
// in the init(), add configFactoryInstance to FactoryList
func init() {
// add to factory list
DDNS.Add2FactoryList(configFactoryInstance)
}
// implement DDNS.ServiceParameter or further DeviceOverridable
Parameter struct {
Token string `KeyValue:"Token,this tag will affect the name displayed in config, all the string after the ',' will be displayed as comments above this key"`
Domain string
SubDomain string
RecordID string
IpToSet string
Type string // "AAAA" or "A"
// ... other parameters
}
// implement DDNS.Request
Request struct {
Parameter
status DDNS.Status
// ... any other fields
}
// implement DDNS.Config
Config struct {
}
// implement DDNS.ConfigFactory
ConfigFactory struct {
}
Structs
ServiceParameter
Request
Config
ConfigFactory
最后更新于