github

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInfraDirs = []string{

	"deploy",

	"infra",

	".github/workflows",
}
View Source
var DefaultScanDirs = []string{

	"docs",

	".agents",
}
View Source
var DefaultTargetFiles = []string{}

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func New

func New(client *github.Client, org string, scanInterval time.Duration, targetFilesOverride, scanDirs, infraDirs, extraRepos, repoTopics []string, repoRegex *regexp.Regexp, registry *parser.ParserRegistry) *Scanner

func (*Scanner) GetFileContent

func (s *Scanner) GetFileContent(ctx context.Context, repoName, path string) (string, error)

func (*Scanner) IsIndexed

func (s *Scanner) IsIndexed(repoName, path string) bool

func (*Scanner) ListRepos

func (s *Scanner) ListRepos() []corescan.RepoInfo

func (*Scanner) SearchDocs

func (s *Scanner) SearchDocs(query string) []corescan.FileEntry

func (*Scanner) SetOnScanComplete

func (s *Scanner) SetOnScanComplete(fn func([]corescan.RepoInfo))

func (*Scanner) Start

func (s *Scanner) Start(ctx context.Context)

func (*Scanner) Status

func (s *Scanner) Status() (scanning bool, lastScan time.Time, repoCount int)

func (*Scanner) TriggerRepoScan

func (s *Scanner) TriggerRepoScan(ctx context.Context, owner, repoName string)

func (*Scanner) TriggerScan

func (s *Scanner) TriggerScan() bool

Directories

Path Synopsis
mcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL