filter

package
v0.0.0-...-354316f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

func NewAction

func NewAction(id *structs.Id, name string, cmd string) *Action

func (*Action) Command

func (self *Action) Command() string

func (*Action) ConvertExternal

func (self *Action) ConvertExternal() *external.Action

func (*Action) Do

func (self *Action) Do(msn *task.Mission, artcl *structs.Article) error

func (*Action) Id

func (self *Action) Id() *structs.Id

func (*Action) Name

func (self *Action) Name() string

type Filter

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

func NewFilter

func NewFilter(id *structs.Id, val_title string, is_regex_title bool, val_body string, is_regex_body bool, action *Action) *Filter

func (*Filter) Action

func (self *Filter) Action() *Action

func (*Filter) ConvertExternal

func (self *Filter) ConvertExternal() *external.Filter

func (*Filter) Id

func (self *Filter) Id() *structs.Id

func (*Filter) IsMatch

func (self *Filter) IsMatch(artlc *structs.Article) bool

func (*Filter) IsRegexBody

func (self *Filter) IsRegexBody() bool

func (*Filter) IsRegexTitle

func (self *Filter) IsRegexTitle() bool

func (*Filter) ValBody

func (self *Filter) ValBody() string

func (*Filter) ValTitle

func (self *Filter) ValTitle() string

Jump to

Keyboard shortcuts

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