mirror of
https://github.com/aceld/kis-flow.git
synced 2025-01-22 23:20:24 +08:00
17 lines
679 B
Go
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)
|