kis-flow/config/kis_global_config.go
2024-04-15 17:50:02 +08:00

17 lines
679 B
Go

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