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.

indexer.go 546B

1234567891011121314151617181920
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package indexer
  4. import (
  5. code_indexer "code.gitea.io/gitea/modules/indexer/code"
  6. issue_indexer "code.gitea.io/gitea/modules/indexer/issues"
  7. stats_indexer "code.gitea.io/gitea/modules/indexer/stats"
  8. notify_service "code.gitea.io/gitea/services/notify"
  9. )
  10. // Init initialize the repo indexer
  11. func Init() error {
  12. notify_service.RegisterNotifier(NewNotifier())
  13. issue_indexer.InitIssueIndexer(false)
  14. code_indexer.Init()
  15. return stats_indexer.Init()
  16. }