diff options
Diffstat (limited to 'modules/setting/metrics.go')
-rw-r--r-- | modules/setting/metrics.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/setting/metrics.go b/modules/setting/metrics.go new file mode 100644 index 0000000..daa0e3b --- /dev/null +++ b/modules/setting/metrics.go @@ -0,0 +1,21 @@ +// 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) +} |