Documentation ¶
Index ¶
Constants ¶
View Source
const PingInterval = 5 * time.Minute
View Source
const PingTimeWarnThreshold = 1500 * time.Millisecond
View Source
const ReceiveDelayWarnThreshold = 5 * time.Second
View Source
const RemoteSendDelayWarnThreshold = 1500 * time.Millisecond
View Source
const WebAverageInterval = 15 * time.Minute
View Source
const WebWarnStatusThreshold = 1500 * time.Millisecond
Variables ¶
View Source
var Path = "monitor-bot.yaml"
View Source
var Runtime = &runtimeConfig{}
Functions ¶
func ReloadConfig ¶
func ReloadConfig() error
Types ¶
type BotConfig ¶
type BotConfig struct { Homeserver *HomeserverConfig `yaml:"homeserver"` Monitor *MonitorConfig `yaml:"monitor"` Metrics *MetricsConfig `yaml:"metrics"` Webserver *WebserverConfig `yaml:"webserver"` Logging *LoggingConfig `yaml:"logging"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *BotConfig
type HomeserverConfig ¶
type LoggingConfig ¶
type LoggingConfig struct {
Directory string `yaml:"directory"`
}
type MetricsConfig ¶
type MonitorConfig ¶
type WebserverConfig ¶
type WebserverConfig struct { WithClient bool `yaml:"serveClient"` Bind string `yaml:"bind"` Port int `yaml:"port"` RelativePath string `yaml:"relativePath"` DefaultCompareDomain string `yaml:"defaultCompareDomain"` DefaultCompareToDomains []string `yaml:"compareDefaultDomains,flow"` FeaturedCompareDomains []string `yaml:"featuredCompareDomains,flow"` }
Click to show internal directories.
Click to hide internal directories.