{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stats\n\n## Functions\n\n```go\nfunc Init() error\n```\nInit initialize the repo indexer\n\n```go\nfunc UpdateRepoIndexer(repo *models.Repository) error\n```\nUpdateRepoIndexer update a repository's entries in the indexer\n\n## Types\n\n```go\ntype DBIndexer struct {\n}\n```\nDBIndexer implements Indexer interface to use database's like search\n\n```go\nfunc (db *DBIndexer) Close()\n```\nClose dummy function\n\n```go\nfunc (db *DBIndexer) Index(id int64) error\n```\nIndex repository status function\n\n```go\ntype Indexer interface {\n\tIndex(id int64) error\n\tClose()\n}\n```\nIndexer defines an interface to index repository stats\n\n","path":"github.com/RedAFD/code-core/modules/indexer/stats","name":"stats","synopsis":"","isRedistributable":true}
