partialMatch

package
v0.0.0-...-4f983b9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequiresMatchParam = errors.New(
		"partialMatch filter requires `match` configuration parameter",
	)
	ErrMatchEmpty           = errors.New("`match` cannot be empty")
	ErrCaseSensitiveNotBool = errors.New("case_sensitive is not a bool")
)

Functions

func Help

func Help() string

func New

func New(logger *zap.Logger, config map[string]any, chainName string) (interfaces.FilteringRule, error)

Types

type Filter

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

func (*Filter) GetFilterName

func (r *Filter) GetFilterName() string

func (*Filter) GetName

func (r *Filter) GetName() string

func (*Filter) HandleTGCommands

func (r *Filter) HandleTGCommands(_ *zap.Logger, _ *telego.Bot, _ *telego.Message, _ []string) error

func (*Filter) IsFinal

func (r *Filter) IsFinal() bool

func (*Filter) IsStateful

func (r *Filter) IsStateful() bool

func (*Filter) Score

func (*Filter) TGAdminPrefix

func (r *Filter) TGAdminPrefix() string

Jump to

Keyboard shortcuts

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