mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-31 08:37:35 -04:00
22 lines
511 B
Go
22 lines
511 B
Go
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package setting
|
||
|
|
||
|
// Metrics settings
|
||
|
var Metrics = struct {
|
||
|
Enabled bool
|
||
|
Token string
|
||
|
EnabledIssueByLabel bool
|
||
|
EnabledIssueByRepository bool
|
||
|
}{
|
||
|
Enabled: false,
|
||
|
Token: "",
|
||
|
EnabledIssueByLabel: false,
|
||
|
EnabledIssueByRepository: false,
|
||
|
}
|
||
|
|
||
|
func loadMetricsFrom(rootCfg ConfigProvider) {
|
||
|
mustMapSetting(rootCfg, "metrics", &Metrics)
|
||
|
}
|