Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotifyDisabled = 0 NotifyIfError = 1 NotifyAll = 2 )
View Source
const RegexpPrefix = `regexp:`
Variables ¶
View Source
var TTLs = echo.NewKVData().
Add(``, `自动`).Add(`1`, `1秒`).Add(`5`, `5秒`).Add(`10`, `10秒`).
Add(`60`, `1分钟`).Add(`120`, `2分钟`).Add(`300`, `5分钟`).
Add(`600`, `10分钟`).Add(`1800`, `30分钟`).
Add(`3600`, `1小时`)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Closed bool IPv4 *NetIPConfig IPv6 *NetIPConfig DNSServices []*DNSService DNSResolver string // example: 8.8.8.8 NotifyMode int // 0-关闭通知; 1-仅仅出错时发送通知;2-发送全部通知 NotifyTemplate map[string]string // 通知模板{html:"",markdown:""} Interval time.Duration }
func (*Config) BinderKeyNormalizer ¶
func (*Config) FindService ¶
func (c *Config) FindService(provider string) *DNSService
type DNSService ¶
type DNSService struct { Enabled bool Provider string Settings echo.H IPv4Domains []*DNSDomain IPv6Domains []*DNSDomain }
func (*DNSService) Clone ¶
func (d *DNSService) Clone() *DNSService
type NetIPConfig ¶
type NetIPConfig struct { Enabled bool Type string // netInterface / api NetInterface *NetInterface NetIPApiUrl string }
func NewNetIPConfig ¶
func NewNetIPConfig() *NetIPConfig
type NetInterface ¶
func NewNetInterface ¶
func NewNetInterface() *NetInterface
Click to show internal directories.
Click to hide internal directories.