search

package
v0.0.0-...-b203053 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTokenRefsInFiles

func FindTokenRefsInFiles(files []string, tokens []string, dir string) (models.TokenMatchesMap, error)

Run through the provided tokens and search each provided file for occurrences of the token

Returns a TokenMatchesMap that maps to token that was search to a slice of FileMatch instances

func SearchAndWriteResults

func SearchAndWriteResults(
	repo *api_results.GHRepo,
	appConfig *config.AppConfig,
	authToken string,
	tokens []string)

func SearchAndWriteResultsAsync

func SearchAndWriteResultsAsync(
	waitGroup *sync.WaitGroup,
	repo *api_results.GHRepo,
	appConfig *config.AppConfig,
	authToken string,
	tokens []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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