monster

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharRule

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

func (CharRule) ID

func (r CharRule) ID() int

func (CharRule) Match

func (r CharRule) Match(level int, rules map[int]Rule, msg string) ([]string, bool)

type Rule

type Rule interface {
	ID() int
	Match(level int, rules map[int]Rule, msg string) ([]string, bool)
}

func ParseRule

func ParseRule(s string) (Rule, error)

type SubsRule

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

func (SubsRule) ID

func (r SubsRule) ID() int

func (SubsRule) Match

func (r SubsRule) Match(level int, rules map[int]Rule, msg string) ([]string, bool)

func (SubsRule) String

func (r SubsRule) String() string

Jump to

Keyboard shortcuts

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