You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

metrics.go 511B

123456789101112131415161718192021
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package setting
  4. // Metrics settings
  5. var Metrics = struct {
  6. Enabled bool
  7. Token string
  8. EnabledIssueByLabel bool
  9. EnabledIssueByRepository bool
  10. }{
  11. Enabled: false,
  12. Token: "",
  13. EnabledIssueByLabel: false,
  14. EnabledIssueByRepository: false,
  15. }
  16. func loadMetricsFrom(rootCfg ConfigProvider) {
  17. mustMapSetting(rootCfg, "metrics", &Metrics)
  18. }