Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLocalFile ¶
func SetFilePath ¶
func SetFilePath(path string)
Types ¶
type ConfigOptions ¶
type ConfigOptions struct {
LogLevel string `json:"log-level" yaml:"log-level"`
LogfileLevel string `json:"logfile-level" yaml:"logfile-level"`
LogfilePath string `json:"logfile-path" yaml:"logfile-path"`
Domain string `json:"domain" yaml:"domain"`
Port string `json:"port" yaml:"port"`
DatabaseUrl string `json:"database_url" yaml:"database_url"`
TGApiUrl string `json:"TG_api_url" yaml:"TG_api_url"`
CrawlInterval uint64 `json:"crawl-interval" yaml:"crawl-interval"`
CFEmail string `json:"cf_email" yaml:"cf_email"`
CFKey string `json:"cf_key" yaml:"cf_key"`
SourceFiles []string `json:"source-files" yaml:"source-files"`
DelayCheckUrl string `json:"delaydheck-url" yaml:"delaydheck-url"`
HealthCheckUrl string `json:"healthcheck-url" yaml:"healthcheck-url"`
HealthCheckTimeout int `json:"healthcheck-timeout" yaml:"healthcheck-timeout"`
HealthCheckConnection int `json:"healthcheck-connection" yaml:"healthcheck-connection"`
SpeedTest bool `json:"speedtest" yaml:"speedtest"`
SpeedTestInterval uint64 `json:"speedtest-interval" yaml:"speedtest-interval"`
SpeedTimeout int `json:"speed-timeout" yaml:"speed-timeout"`
SpeedConnection int `json:"speed-connection" yaml:"speed-connection"`
ActiveFrequency uint16 `json:"active-frequency" yaml:"active-frequency" `
ActiveInterval uint64 `json:"active-interval" yaml:"active-interval"`
ActiveMaxNumber uint16 `json:"active-max-number" yaml:"active-max-number"`
}
var Config ConfigOptions
Config 配置
func (ConfigOptions) HostUrl ¶
func (config ConfigOptions) HostUrl() string
Click to show internal directories.
Click to hide internal directories.