Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleUrlConfig ¶
type ArticleUrlConfig struct { Referer string `yaml:"referer"` RealmId []string `yaml:"realmId"` Spec int `yaml:"spec"` }
func (*ArticleUrlConfig) Clone ¶
func (a *ArticleUrlConfig) Clone() ArticleUrlConfig
type Config ¶
type Config struct { Server ServerConfig `yaml:"server"` Database DatabaseConfig `yaml:"database"` ProxyServer ProxyServerConfig `yaml:"proxyServer"` Observers map[string]ObserverConfig `yaml:"observers"` ArticlesRequestUrl string `yaml:"articlesRequestUrl"` ArticleUrl []ArticleUrlConfig `yaml:"articleUrl"` Logger LoggerConfig `yaml:"logger"` }
var GlobalConfig *Config
type DatabaseConfig ¶
type LoggerConfig ¶
type ObserverConfig ¶
type ObserverConfig struct { Prefix string `yaml:"prefix"` Spec int `yaml:"spec"` PerArticleMinDelay int `yaml:"perArticleMinDelay"` PerArticleMaxDelay int `yaml:"perArticleMaxDelay"` PerCommentsPageMinDelay int `yaml:"perCommentsPageMinDelay"` PerCommentsPageMaxDelay int `yaml:"perCommentsPageMaxDelay"` IdleTime int `yaml:"idleTime"` RetryCount int `yaml:"retryCount"` RetryInterval int `yaml:"retryInterval"` }
type ProxyServerConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.