Documentation ¶
Index ¶
- Variables
- func DealConfigCrypto(key string)
- func GetMetricDesc(lang, metric string) string
- func LabelAndKeyHasKey(keys []LabelAndKey, key string) bool
- func MustLoad(key string, fpaths ...string)
- type AnonymousAccess
- type ClusterOptions
- type Config
- type Ibex
- type JWTAuth
- type LabelAndKey
- type ProxyAuth
Constants ¶
This section is empty.
Variables ¶
View Source
var (
C = new(Config)
)
View Source
var MetricDesc metricDesc
Functions ¶
func DealConfigCrypto ¶ added in v5.14.0
func DealConfigCrypto(key string)
func GetMetricDesc ¶ added in v5.11.0
GetMetricDesc , if metric is not registered, empty string will be returned
func LabelAndKeyHasKey ¶ added in v5.4.0
func LabelAndKeyHasKey(keys []LabelAndKey, key string) bool
Types ¶
type AnonymousAccess ¶
type ClusterOptions ¶ added in v5.9.2
type Config ¶
type Config struct { RunMode string I18N string I18NHeaderKey string AdminRole string MetricsYamlFile string BuiltinAlertsDir string BuiltinDashboardsDir string ClustersFrom string ClustersFromAPIs []string ContactKeys []LabelAndKey NotifyChannels []LabelAndKey Log logx.Config HTTP httpx.Config JWTAuth JWTAuth ProxyAuth ProxyAuth BasicAuth gin.Accounts AnonymousAccess AnonymousAccess LDAP ldapx.LdapSection Redis storage.RedisConfig DB ormx.DBConfig Clusters []ClusterOptions Ibex Ibex OIDC oidcc.Config TargetMetrics map[string]string }
func (*Config) IsDebugMode ¶
type LabelAndKey ¶ added in v5.4.0
Click to show internal directories.
Click to hide internal directories.