gitea: code.gitea.io/gitea/modules/indexer/stats Index | Files

package stats

import "code.gitea.io/gitea/modules/indexer/stats"

Index

Package Files

db.go indexer.go queue.go

func Init Uses

func Init() error

Init initialize the repo indexer

func UpdateRepoIndexer Uses

func UpdateRepoIndexer(repo *models.Repository) error

UpdateRepoIndexer update a repository's entries in the indexer

type DBIndexer Uses

type DBIndexer struct {
}

DBIndexer implements Indexer interface to use database's like search

func (*DBIndexer) Close Uses

func (db *DBIndexer) Close()

Close dummy function

func (*DBIndexer) Index Uses

func (db *DBIndexer) Index(id int64) error

Index repository status function

type Indexer Uses

type Indexer interface {
    Index(id int64) error
    Close()
}

Indexer defines an interface to index repository stats

Package stats imports 6 packages (graph) and is imported by 8 packages. Updated 2021-01-22. Refresh now. Tools for package owners.