executer

package
v2.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event map[string]interface{}

type Executer

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

func NewExecuter

func NewExecuter(requests []protocols.Request, options *protocols.ExecuterOptions) *Executer

NewExecuter creates a new request executer for list of requests

func (*Executer) Compile

func (e *Executer) Compile() error

Compile compiles the execution generators preparing any requests possible.

func (*Executer) Execute

func (e *Executer) Execute(input string) (*protocols.Result, error)

Execute executes the protocol group and returns true or false if results were found.

func (*Executer) Requests

func (e *Executer) Requests() int

Requests returns the total number of requests the rule will perform

type WrappedEvent

type WrappedEvent struct {
	InternalEvent   Event
	OperatorsResult *protocols.Result
}

Jump to

Keyboard shortcuts

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