Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DelimLeft = `#{`
View Source
var DelimRight = `}`
View Source
var TagValueDescs = echo.NewKVData(). Add(Tag(`ipv4Addr`), `新的IPv4地址`). Add(Tag(`ipv4Result`), `IPv4地址更新结果(JSON格式)`). Add(Tag(`ipv4Domains`), `IPv4的域名,多个以","分割`). Add(Tag(`ipv6Addr`), `新的IPv6地址`). Add(Tag(`ipv6Result`), `IPv6地址更新结果(JSON格式)`). Add(Tag(`ipv6Domains`), `IPv6的域名,多个以","分割`). Add(Tag(`error`), `错误信息`). Add(Tag(`ip`), `新的IP地址(自动选择IPv4/IPv6)`)
View Source
var TrackerTypes = echo.NewKVData().
Add(`api`, `通过接口获取`).
Add(`netInterface`, `通过网卡获取`).
Add(`cmd`, `通过命令行获取`)
Functions ¶
Types ¶
type Domain ¶
type Domain struct { IPFormat string // IP格式模板(支持变量标签#{ip}) DomainName string // 根域名(如“webx.top”) SubDomain string // 子域名主机头(如“foo”则代表子域名“foo.webx.top”) Line string // 线路类型 UpdateStatus UpdateStatusType // 更新状态 Extra echo.H // 扩展数据 }
Domain 域名实体
func (Domain) GetSubDomain ¶
GetSubDomain 获得子域名,为空返回@ 阿里云,dnspod需要
type TagValues ¶
type TagValues struct { IPv4Addr string IPv4Result Results IPv4Domains []string IPv6Addr string IPv6Result Results IPv6Domains []string IPAddr string Error string // contains filtered or unexported fields }
func NewTagValues ¶
func NewTagValues() *TagValues
func (*TagValues) ParseQuery ¶ added in v3.6.1
type UpdateStatusType ¶
type UpdateStatusType string
UpdateStatusType 更新状态
const ( // UpdatedNothing 未改变 UpdatedNothing UpdateStatusType = "未改变" // UpdatedFailed 更新失败 UpdatedFailed UpdateStatusType = "失败" // UpdatedSuccess 更新成功 UpdatedSuccess UpdateStatusType = "成功" UpdatedIdle UpdateStatusType = "" )
Click to show internal directories.
Click to hide internal directories.