kis-flow/config/kis_global_config.go

17 lines
679 B
Go
Raw Normal View History

2024-03-04 14:53:29 +08:00
package config
2024-04-15 17:50:02 +08:00
// KisGlobalConfig represents the global configuration for KisFlow
2024-03-04 14:53:29 +08:00
type KisGlobalConfig struct {
2024-04-15 17:50:02 +08:00
// KisType Global is the global configuration for kisflow
2024-03-04 14:53:29 +08:00
KisType string `yaml:"kistype"`
2024-04-15 17:50:02 +08:00
// EnableProm indicates whether to start Prometheus monitoring
2024-03-04 14:53:29 +08:00
EnableProm bool `yaml:"prometheus_enable"`
2024-04-15 17:50:02 +08:00
// PrometheusListen indicates whether kisflow needs to start a separate port for listening
2024-03-04 14:53:29 +08:00
PrometheusListen bool `yaml:"prometheus_listen"`
2024-04-15 17:50:02 +08:00
// PrometheusServe is the address for Prometheus scraping
2024-03-04 14:53:29 +08:00
PrometheusServe string `yaml:"prometheus_serve"`
}
2024-04-15 17:50:02 +08:00
// GlobalConfig is the default global configuration, all are set to off
2024-03-04 14:53:29 +08:00
var GlobalConfig = new(KisGlobalConfig)