application

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package application contains the application logic for the homoglyphs rule type

Index

Constants

View Source
const (
	// HomoglyphsEvalType is the type of the homoglyphs evaluator
	HomoglyphsEvalType = "homoglyphs"
)

Variables

This section is empty.

Functions

func NewHomoglyphsEvaluator

func NewHomoglyphsEvaluator(
	reh *pb.RuleType_Definition_Eval_Homoglyphs,
	pbuild *providers.ProviderBuilder,
) (engif.Evaluator, error)

NewHomoglyphsEvaluator creates a new homoglyphs evaluator

Types

type InvisibleCharactersEvaluator

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

InvisibleCharactersEvaluator is an evaluator for the invisible characters rule type

func NewInvisibleCharactersEvaluator

func NewInvisibleCharactersEvaluator(pbuild *providers.ProviderBuilder) (*InvisibleCharactersEvaluator, error)

NewInvisibleCharactersEvaluator creates a new invisible characters evaluator

func (*InvisibleCharactersEvaluator) Eval

Eval evaluates the invisible characters rule type

type MixedScriptsEvaluator

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

MixedScriptsEvaluator is the evaluator for the mixed scripts rule type

func NewMixedScriptEvaluator

func NewMixedScriptEvaluator(pbuild *providers.ProviderBuilder) (*MixedScriptsEvaluator, error)

NewMixedScriptEvaluator creates a new mixed scripts evaluator

func (*MixedScriptsEvaluator) Eval

func (mse *MixedScriptsEvaluator) Eval(ctx context.Context, _ map[string]any, res *engif.Result) error

Eval evaluates the mixed scripts rule type

Jump to

Keyboard shortcuts

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