rule

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleClass

type RuleClass[InputType any] interface {
	Type() ruleenum.RuleType
	Match(input InputType) (bool, error)
	StorageName() string
	StoragePath() string
}

type RuleFileNameRegex

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

func NewRuleFileNameRegex

func NewRuleFileNameRegex(storName, storPath, regexStr string) (*RuleFileNameRegex, error)

func (RuleFileNameRegex) Match

func (r RuleFileNameRegex) Match(input tfile.TGFile) (bool, error)

func (RuleFileNameRegex) StorageName

func (r RuleFileNameRegex) StorageName() string

func (RuleFileNameRegex) StoragePath

func (r RuleFileNameRegex) StoragePath() string

func (RuleFileNameRegex) Type

type RuleMessageRegex

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

func NewRuleMessageRegex

func NewRuleMessageRegex(storName, storPath, regexStr string) (*RuleMessageRegex, error)

func (RuleMessageRegex) Match

func (r RuleMessageRegex) Match(input string) (bool, error)

func (RuleMessageRegex) StorageName

func (r RuleMessageRegex) StorageName() string

func (RuleMessageRegex) StoragePath

func (r RuleMessageRegex) StoragePath() string

func (RuleMessageRegex) Type

Jump to

Keyboard shortcuts

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