Skip to content

Commit

Permalink
chore: fix function names in comment (#5110)
Browse files Browse the repository at this point in the history
  • Loading branch information
socialsister committed Apr 27, 2024
1 parent 7ce1b3e commit e96fdf2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func EnablePassiveMode() NucleiSDKOptions {
}
}

// WithAuthOptions allows setting a custom authprovider implementation
// WithAuthProvider allows setting a custom authprovider implementation
func WithAuthProvider(provider authprovider.AuthProvider) NucleiSDKOptions {
return func(e *NucleiEngine) error {
e.authprovider = provider
Expand Down
2 changes: 1 addition & 1 deletion lib/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (e *ThreadSafeNucleiEngine) GlobalResultCallback(callback func(event *outpu
e.eng.resultCallbacks = []func(*output.ResultEvent){callback}
}

// ExecuteWithCallback executes templates on targets and calls callback on each result(only if results are found)
// ExecuteNucleiWithOpts executes templates on targets and calls callback on each result(only if results are found)
// This method can be called concurrently and it will use some global resources but can be runned parallelly
// by invoking this method with different options and targets
// Note: Not all options are thread-safe. this method will throw error if you try to use non-thread-safe options
Expand Down
2 changes: 1 addition & 1 deletion pkg/authprovider/authx/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func GetAuthDataFromFile(file string) (*Authx, error) {
return GetAuthDataFromJSON(bin)
}

// GetTemplateIDsFromSecretFile reads the template IDs from the secret file
// GetTemplatePathsFromSecretFile reads the template IDs from the secret file
func GetTemplatePathsFromSecretFile(file string) ([]string, error) {
auth, err := GetAuthDataFromFile(file)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/catalog/config/nucleiconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ func (c *Config) GetTemplateIndexFilePath() string {
return filepath.Join(c.TemplatesDirectory, NucleiTemplatesIndexFileName)
}

// GetTemplatesConfigFilePath returns checksum file path of nuclei templates
// GetChecksumFilePath returns checksum file path of nuclei templates
func (c *Config) GetChecksumFilePath() string {
return filepath.Join(c.TemplatesDirectory, NucleiTemplatesCheckSumFileName)
}

// GetCLIOptsConfigFilePath returns the nuclei cli config file path
// GetFlagsConfigFilePath returns the nuclei cli config file path
func (c *Config) GetFlagsConfigFilePath() string {
return filepath.Join(c.configDir, CLIConfigFileName)
}
Expand Down

0 comments on commit e96fdf2

Please sign in to comment.